Correct three cases where the wrong expression was checked to see if
an allocation function returned null.
[ghudson@mit.edu: commit message, patch splitting]
[tlyu@mit.edu: omit inapplicable lib/kadm/srv/svr_principal.c change]
(back ported from commit
a9ee4a040eeacab1d410ff9e4c862484b531c401)
ticket: 7582
version_fixed: 1.10.4
status: resolved
key_pagep =
__get_page(hashp, OADDR_TO_PAGE(DATA_OFF(pagep, ndx)), A_RAW);
- if (!pagep)
+ if (!key_pagep)
return (-1);
key->size = collect_key(hashp, key_pagep, 0, NULL);
key->data = hashp->bigkey_buf;
asn1_const_Finish(&c);
*outdata = malloc((size_t)Tlen);
- if (outdata == NULL) {
+ if (*outdata == NULL) {
retval = ENOMEM;
goto cleanup;
}