[BACK]Return to sshbuf-getput-crypto.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sshbuf-getput-crypto.c between version 1.9 and 1.10

version 1.9, 2022/05/25 00:31:13 version 1.10, 2022/05/25 06:03:44
Line 78 
Line 78 
         /* 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;
         }          }
Line 94 
Line 94 
         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) {
Line 113 
Line 113 
         /* 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;
         }          }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10