projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
038d199
)
handle freeing null keyblock
author
Ken Raeburn
<raeburn@mit.edu>
Sat, 31 Jan 2009 00:49:53 +0000
(
00:49
+0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Sat, 31 Jan 2009 00:49:53 +0000
(
00:49
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21846
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/crypto/keyblocks.c
patch
|
blob
|
history
diff --git
a/src/lib/crypto/keyblocks.c
b/src/lib/crypto/keyblocks.c
index 5e698cc5a655e894db8c7b0771b9a384cba4b01c..5912c81b43159f34d6258356d4d0bf1dbc870534 100644
(file)
--- a/
src/lib/crypto/keyblocks.c
+++ b/
src/lib/crypto/keyblocks.c
@@
-69,11
+69,11
@@
krb5int_c_free_keyblock(krb5_context context, register krb5_keyblock *val)
}
void
-krb5int_c_free_keyblock_contents(krb5_context context,
register
krb5_keyblock *key)
+krb5int_c_free_keyblock_contents(krb5_context context, krb5_keyblock *key)
{
-
if (
key->contents) {
- krb5int_zap_data (key->contents, key->length);
-
free(key->contents);
-
key->contents = 0;
-
}
+
if (key &&
key->contents) {
+ krb5int_zap_data (key->contents, key->length);
+ free(key->contents);
+ key->contents = 0;
+ }
}