summaryrefslogtreecommitdiff
path: root/lib/gssapi/mech/gss_get_name_attribute.c
diff options
context:
space:
mode:
authorLuke Howard <lukeh@padl.com>2011-05-12 14:01:40 +0200
committerLuke Howard <lukeh@padl.com>2011-05-12 14:02:11 +0200
commit32878204482e56c67a6b7c6217933d4bb163a6b7 (patch)
tree47bc8325e445295ab2d6b97856b50729875e40c9 /lib/gssapi/mech/gss_get_name_attribute.c
parentbe92276b8ba7ee66518eba4e0ef014cc455dc3f6 (diff)
Allow NULL arguments to gss_{get_name_attribute,inquire_name}
Diffstat (limited to 'lib/gssapi/mech/gss_get_name_attribute.c')
-rw-r--r--lib/gssapi/mech/gss_get_name_attribute.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gssapi/mech/gss_get_name_attribute.c b/lib/gssapi/mech/gss_get_name_attribute.c
index cb72c044f..2c0132255 100644
--- a/lib/gssapi/mech/gss_get_name_attribute.c
+++ b/lib/gssapi/mech/gss_get_name_attribute.c
@@ -47,8 +47,10 @@ gss_get_name_attribute(OM_uint32 *minor_status,
struct _gss_mechanism_name *mn;
*minor_status = 0;
- *authenticated = 0;
- *complete = 0;
+ if (authenticated != NULL)
+ *authenticated = 0;
+ if (complete != NULL)
+ *complete = 0;
_mg_buffer_zero(value);
_mg_buffer_zero(display_value);