diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-20 00:49:37 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-20 00:49:37 +0000 |
commit | d17a279cbdc8f21d9229f8e80ccefab5e925143d (patch) | |
tree | 0b21dc0d06a73941b4c0772f4610bae9526e42d2 /lib/libgssapi/gss_mech_switch.c | |
parent | 89c6fc4bee45c341529e586ec35efae29be510a8 (diff) | |
download | FreeBSD-src-d17a279cbdc8f21d9229f8e80ccefab5e925143d.zip FreeBSD-src-d17a279cbdc8f21d9229f8e80ccefab5e925143d.tar.gz |
MFC 297942:
libgssapi: avoid NULL pointer dereferences.
While here also use NULL instead of zero for pointers.
Diffstat (limited to 'lib/libgssapi/gss_mech_switch.c')
-rw-r--r-- | lib/libgssapi/gss_mech_switch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libgssapi/gss_mech_switch.c b/lib/libgssapi/gss_mech_switch.c index d07db88..2d742e7 100644 --- a/lib/libgssapi/gss_mech_switch.c +++ b/lib/libgssapi/gss_mech_switch.c @@ -83,7 +83,7 @@ _gss_string_to_oid(const char* s, gss_OID oid) * out the size. Second time around, we actually encode the * number. */ - res = 0; + res = NULL; for (i = 0; i < 2; i++) { byte_count = 0; for (p = s, j = 0; p; p = q, j++) { |