aboutsummaryrefslogtreecommitdiff
path: root/lib/libgssapi/gss_inquire_context.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-13 21:08:02 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-13 21:08:02 +0000
commit6baf7cc80ea9cb47434833c387c09cacfd248571 (patch)
tree8514b64e320ec177cc682e7beb87182f36110d47 /lib/libgssapi/gss_inquire_context.c
parent361c75321b30cb78c342c953b08f1e83817fcbf9 (diff)
downloadsrc-6baf7cc80ea9cb47434833c387c09cacfd248571.tar.gz
src-6baf7cc80ea9cb47434833c387c09cacfd248571.zip
libgssapi: avoid NULL pointer dereferences.
While here also use NULL instead of zero for pointers. Found with coccinelle. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=297942
Diffstat (limited to 'lib/libgssapi/gss_inquire_context.c')
-rw-r--r--lib/libgssapi/gss_inquire_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libgssapi/gss_inquire_context.c b/lib/libgssapi/gss_inquire_context.c
index c9f2a0c545ef..59e03e819284 100644
--- a/lib/libgssapi/gss_inquire_context.c
+++ b/lib/libgssapi/gss_inquire_context.c
@@ -99,7 +99,7 @@ gss_inquire_context(OM_uint32 *minor_status,
if (src_name)
gss_release_name(minor_status, src_name);
m->gm_release_name(minor_status, &src_mn);
- minor_status = 0;
+ minor_status = NULL;
return (GSS_S_FAILURE);
}
*targ_name = (gss_name_t) name;