1
1

use LIBSSH2_ERROR_ALLOC instead of introducing a new error code

Этот коммит содержится в:
Daniel Stenberg 2009-05-25 10:40:36 +02:00
родитель 0357ce6c48
Коммит 8df3222d91

Просмотреть файл

@ -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;