version 1.9, 2022/05/25 00:31:13 |
version 1.10, 2022/05/25 06:03:44 |
|
|
/* Skip string */ |
/* Skip string */ |
if (sshbuf_get_string_direct(buf, NULL, NULL) != 0) { |
if (sshbuf_get_string_direct(buf, NULL, NULL) != 0) { |
/* Shouldn't happen */ |
/* Shouldn't happen */ |
SSHBUF_DBG("SSH_ERR_INTERNAL_ERROR"); |
SSHBUF_DBG(("SSH_ERR_INTERNAL_ERROR")); |
SSHBUF_ABORT(); |
SSHBUF_ABORT(); |
return SSH_ERR_INTERNAL_ERROR; |
return SSH_ERR_INTERNAL_ERROR; |
} |
} |
|
|
size_t len; |
size_t len; |
|
|
if (pt == NULL) { |
if (pt == NULL) { |
SSHBUF_DBG("SSH_ERR_ALLOC_FAIL"); |
SSHBUF_DBG(("SSH_ERR_ALLOC_FAIL")); |
return SSH_ERR_ALLOC_FAIL; |
return SSH_ERR_ALLOC_FAIL; |
} |
} |
if ((r = sshbuf_peek_string_direct(buf, &d, &len)) < 0) { |
if ((r = sshbuf_peek_string_direct(buf, &d, &len)) < 0) { |
|
|
/* Skip string */ |
/* Skip string */ |
if (sshbuf_get_string_direct(buf, NULL, NULL) != 0) { |
if (sshbuf_get_string_direct(buf, NULL, NULL) != 0) { |
/* Shouldn't happen */ |
/* Shouldn't happen */ |
SSHBUF_DBG("SSH_ERR_INTERNAL_ERROR"); |
SSHBUF_DBG(("SSH_ERR_INTERNAL_ERROR")); |
SSHBUF_ABORT(); |
SSHBUF_ABORT(); |
return SSH_ERR_INTERNAL_ERROR; |
return SSH_ERR_INTERNAL_ERROR; |
} |
} |