svn rev #25708: branches/krb5-1-10/src/lib/gssapi/mechglue/

tlyu@MIT.EDU tlyu at MIT.EDU
Tue Feb 21 23:11:51 EST 2012


http://src.mit.edu/fisheye/changelog/krb5/?cs=25708
Commit By: tlyu
Log Message:
ticket: 7089
version_fixed: 1.10.1
status: resolved

Pull up r25700 from trunk

 ------------------------------------------------------------------------
 r25700 | ghudson | 2012-02-14 13:26:50 -0500 (Tue, 14 Feb 2012) | 9 lines

 ticket: 7089
 subject: Initialize gss_get_name_attribute output buffers
 target_version: 1.10.1
 tags: pullup

 GSS functions which accept gss_buffer_t output arguments should
 initialize those buffers to empty on startup (see gss_wrap, for
 instance).  Do so for gss_get_name_attribute in the mechglue.


Changed Files:
U   branches/krb5-1-10/src/lib/gssapi/mechglue/g_get_name_attr.c
Modified: branches/krb5-1-10/src/lib/gssapi/mechglue/g_get_name_attr.c
===================================================================
--- branches/krb5-1-10/src/lib/gssapi/mechglue/g_get_name_attr.c	2012-02-22 04:11:45 UTC (rev 25707)
+++ branches/krb5-1-10/src/lib/gssapi/mechglue/g_get_name_attr.c	2012-02-22 04:11:51 UTC (rev 25708)
@@ -55,6 +55,14 @@
         *authenticated = 0;
     if (complete != NULL)
         *complete = 0;
+    if (value != GSS_C_NO_BUFFER) {
+        value->value = NULL;
+        value->length = 0;
+    }
+    if (display_value != GSS_C_NO_BUFFER) {
+        display_value->value = NULL;
+        display_value->length = 0;
+    }
 
     *minor_status = 0;
 



More information about the cvs-krb5 mailing list