From 8df3222d917f3f6b643739ce95b19ad7ffabd56c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 25 May 2009 10:40:36 +0200 Subject: [PATCH] use LIBSSH2_ERROR_ALLOC instead of introducing a new error code --- src/knownhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/knownhost.c b/src/knownhost.c index 3bf034a..2ac4795 100644 --- a/src/knownhost.c +++ b/src/knownhost.c @@ -109,7 +109,7 @@ libssh2_knownhost_add(LIBSSH2_KNOWNHOSTS *hosts, struct known_host *entry = LIBSSH2_ALLOC(hosts->session, sizeof(struct known_host)); size_t hostlen = strlen(host); - int rc = LIBSSH2_ERROR_MEMORY; + int rc = LIBSSH2_ERROR_ALLOC; char *ptr; unsigned int ptrlen;