g_make_string_buffer test, and return GSS_S_FAILURE if it fails.
Reported by snambakam@likewise.com.
ticket: 6898
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24876
dc483132-0cff-0310-8789-
dd5450dbe970
}
/* If this fails, there's not much we can do... */
- if (g_make_string_buffer(krb5_gss_get_error_message(status_value),
- status_string) != 0)
+ if (!g_make_string_buffer(krb5_gss_get_error_message(status_value),
+ status_string)) {
*minor_status = ENOMEM;
- else
- *minor_status = 0;
- return 0;
+ return(GSS_S_FAILURE);
+ }
+ *minor_status = 0;
+ return(GSS_S_COMPLETE);
} else {
*minor_status = 0;
return(GSS_S_BAD_STATUS);