git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
auth: Make afsconf_PutTypedKeyList idempotent
[openafs.git]
/
src
/
auth
/
keys.c
diff --git
a/src/auth/keys.c
b/src/auth/keys.c
index
54ad955
..
b1959c7
100644
(file)
--- a/
src/auth/keys.c
+++ b/
src/auth/keys.c
@@
-1006,6
+1006,10
@@
afsconf_PutTypedKeyList(struct afsconf_typedKeyList **keys)
{
int i;
+ if (*keys == NULL) {
+ return;
+ }
+
for (i=0;i<(*keys)->nkeys;i++)
afsconf_typedKey_put(&((*keys)->keys[i]));