git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
afscp: avoid null dereference in _GetSecurityObject error case
[openafs.git]
/
src
/
libafscp
/
afscp_util.c
diff --git
a/src/libafscp/afscp_util.c
b/src/libafscp/afscp_util.c
index
cb96a6b
..
df4689a
100644
(file)
--- a/
src/libafscp/afscp_util.c
+++ b/
src/libafscp/afscp_util.c
@@
-139,7
+139,8
@@
_GetSecurityObject(struct afscp_cell *cell)
strlcpy(localcell, realms[0], sizeof(localcell));
krb5_free_host_realm(context, realms);
realm = localcell;
- }
+ } else
+ goto try_anon;
} else {
realm = cell->realm;
strlcpy(localcell, realm, MAXCELLCHARS + 1);