svn rev #25700: trunk/src/lib/gssapi/mechglue/
ghudson@MIT.EDU
ghudson at MIT.EDU
Tue Feb 14 13:26:50 EST 2012
http://src.mit.edu/fisheye/changelog/krb5/?cs=25700
Commit By: ghudson
Log Message:
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 trunk/src/lib/gssapi/mechglue/g_get_name_attr.c
Modified: trunk/src/lib/gssapi/mechglue/g_get_name_attr.c
===================================================================
--- trunk/src/lib/gssapi/mechglue/g_get_name_attr.c 2012-02-13 22:41:25 UTC (rev 25699)
+++ trunk/src/lib/gssapi/mechglue/g_get_name_attr.c 2012-02-14 18:26:50 UTC (rev 25700)
@@ -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