[BACK]Return to auth-options.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/auth-options.c between version 1.98 and 1.99

version 1.98, 2022/02/08 08:59:12 version 1.99, 2023/03/29 00:18:35
Line 700 
Line 700 
 {  {
         struct sshbuf *b;          struct sshbuf *b;
         size_t i;          size_t i;
         int r;          int r = SSH_ERR_INTERNAL_ERROR;
   
         if (n > INT_MAX)          if (n > INT_MAX)
                 return SSH_ERR_INTERNAL_ERROR;                  return SSH_ERR_INTERNAL_ERROR;
Line 709 
Line 709 
                 return SSH_ERR_ALLOC_FAIL;                  return SSH_ERR_ALLOC_FAIL;
         }          }
         for (i = 0; i < n; i++) {          for (i = 0; i < n; i++) {
                 if ((r = sshbuf_put_cstring(b, a[i])) != 0) {                  if ((r = sshbuf_put_cstring(b, a[i])) != 0)
                         sshbuf_free(b);                          goto out;
                         return r;  
                 }  
         }          }
         if ((r = sshbuf_put_u32(m, n)) != 0 ||          if ((r = sshbuf_put_u32(m, n)) != 0 ||
             (r = sshbuf_put_stringb(m, b)) != 0) {              (r = sshbuf_put_stringb(m, b)) != 0)
                 sshbuf_free(b);                  goto out;
                 return r;  
         }  
         /* success */          /* success */
         return 0;          r = 0;
    out:
           sshbuf_free(b);
           return r;
 }  }
   
 static int  static int

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99