[BACK]Return to x509.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/x509.c between version 1.21 and 1.22

version 1.21, 2021/04/01 10:47:38 version 1.22, 2021/04/07 10:29:58
Line 977 
Line 977 
                                 bnser = ASN1_INTEGER_to_BN(ser, NULL);                                  bnser = ASN1_INTEGER_to_BN(ser, NULL);
                                 if (bnser == NULL)                                  if (bnser == NULL)
                                         goto end;                                          goto end;
                                 if (!BN_add_word(bnser, 1))                                  if (!BN_add_word(bnser, 1)) {
                                           BN_free(bnser);
                                         goto end;                                          goto end;
                                   }
                                 ser = BN_to_ASN1_INTEGER(bnser, NULL);                                  ser = BN_to_ASN1_INTEGER(bnser, NULL);
                                 if (ser == NULL)                                  if (ser == NULL) {
                                           BN_free(bnser);
                                         goto end;                                          goto end;
                                   }
                                 BN_free(bnser);                                  BN_free(bnser);
                                 i2a_ASN1_INTEGER(out, ser);                                  i2a_ASN1_INTEGER(out, ser);
                                 ASN1_INTEGER_free(ser);                                  ASN1_INTEGER_free(ser);

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22