summaryrefslogtreecommitdiffstats
path: root/src/plugins/kdb/db2/libdb2
diff options
context:
space:
mode:
authorNickolai Zeldovich <nickolai@csail.mit.edu>2013-01-07 01:37:19 -0500
committerGreg Hudson <ghudson@mit.edu>2013-01-07 01:37:19 -0500
commita9ee4a040eeacab1d410ff9e4c862484b531c401 (patch)
tree4246b297fa2a743c00c8852ffcc3623e3742632a /src/plugins/kdb/db2/libdb2
parent5e3bf4ac6cb02601c5f10c5b2804fd5028c80119 (diff)
downloadkrb5-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/kdb/db2/libdb2')
-rw-r--r--src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c b/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
index e6aa03525..497939d2d 100644
--- a/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
+++ b/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
@@ -303,7 +303,7 @@ __get_bigkey(hashp, pagep, ndx, key)
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;