use LIBSSH2_ERROR_ALLOC instead of introducing a new error code

This commit is contained in:
Daniel Stenberg 2009-05-25 10:40:36 +02:00
parent 0357ce6c48
commit 8df3222d91

View File

@ -109,7 +109,7 @@ libssh2_knownhost_add(LIBSSH2_KNOWNHOSTS *hosts,
struct known_host *entry = struct known_host *entry =
LIBSSH2_ALLOC(hosts->session, sizeof(struct known_host)); LIBSSH2_ALLOC(hosts->session, sizeof(struct known_host));
size_t hostlen = strlen(host); size_t hostlen = strlen(host);
int rc = LIBSSH2_ERROR_MEMORY; int rc = LIBSSH2_ERROR_ALLOC;
char *ptr; char *ptr;
unsigned int ptrlen; unsigned int ptrlen;