From 4ec41b39d98ced9d69f980f382e87ad5578b397a Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Mon, 11 Sep 2017 17:46:26 -0400 Subject: [PATCH] Handle null TR_GSS_NAMES when checking for match --- common/tr_gss.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/tr_gss.c b/common/tr_gss.c index fd3ec31..7fa6876 100644 --- 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; iinames[ii]!=NULL) && (0==tr_name_cmp(gn->names[ii], name))) -- 2.1.4