From: Luke Howard Date: Tue, 29 Mar 2011 13:49:59 +0000 (+1100) Subject: allow complete/authenticated params to be NULL X-Git-Tag: tr-beta1~241 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=commitdiff_plain;h=8bc98f65f91c371b1f459a0c7ba2c44e06185a25 allow complete/authenticated params to be NULL --- diff --git a/mech_eap/util_attr.cpp b/mech_eap/util_attr.cpp index 9cdcc20..4da585d 100644 --- a/mech_eap/util_attr.cpp +++ b/mech_eap/util_attr.cpp @@ -882,8 +882,10 @@ gssEapGetNameAttribute(OM_uint32 *minor, gss_buffer_t display_value, int *more) { - *authenticated = 0; - *complete = 0; + if (authenticated != NULL) + *authenticated = 0; + if (complete != NULL) + *complete = 0; if (value != NULL) { value->length = 0;