use LIBSSH2_ERROR_ALLOC instead of introducing a new error code
Этот коммит содержится в:
родитель
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;
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user