diff options
| author | Nickolai Zeldovich <nickolai@csail.mit.edu> | 2013-01-07 01:37:19 -0500 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2013-01-07 01:37:19 -0500 |
| commit | a9ee4a040eeacab1d410ff9e4c862484b531c401 (patch) | |
| tree | 4246b297fa2a743c00c8852ffcc3623e3742632a /src/plugins/preauth/pkinit | |
| parent | 5e3bf4ac6cb02601c5f10c5b2804fd5028c80119 (diff) | |
| download | krb5-a9ee4a040eeacab1d410ff9e4c862484b531c401.tar.gz krb5-a9ee4a040eeacab1d410ff9e4c862484b531c401.tar.xz krb5-a9ee4a040eeacab1d410ff9e4c862484b531c401.zip | |
Fix various result checks
Correct three cases where the wrong expression was checked to see if
an allocation function returned null.
[ghudson@mit.edu: commit message, patch splitting]
ticket: 7534
target_version: 1.11.1
tags: pullup
Diffstat (limited to 'src/plugins/preauth/pkinit')
| -rw-r--r-- | src/plugins/preauth/pkinit/pkinit_crypto_openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c index dfb45c1b4..17c37c66b 100644 --- a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c +++ b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c @@ -3619,7 +3619,7 @@ prepare_enc_data(unsigned char *indata, asn1_const_Finish(&c); *outdata = malloc((size_t)Tlen); - if (outdata == NULL) { + if (*outdata == NULL) { retval = ENOMEM; goto cleanup; } |
