projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handle null TR_GSS_NAMES when checking for match
[trust_router.git]
/
common
/
tr_gss.c
diff --git
a/common/tr_gss.c
b/common/tr_gss.c
index
fd3ec31
..
7fa6876
100644
(file)
--- a/
common/tr_gss.c
+++ b/
common/tr_gss.c
@@
-85,6
+85,9
@@
int tr_gss_names_matches(TR_GSS_NAMES *gn, TR_NAME *name)
{
int ii=0;
+ if (!gn)
+ return 0;
+
for (ii=0; ii<TR_MAX_GSS_NAMES; ii++) {
if ((gn->names[ii]!=NULL) &&
(0==tr_name_cmp(gn->names[ii], name)))