[PATCH 4/4] strdup->gssalloc_strdup in krb5_gss_localname
Sam Hartman
hartmans at painless-security.com
Thu Oct 6 13:25:33 EDT 2011
From: Kevin Wasserman <kevin.wasserman at painless-security.com>
Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>
---
src/lib/gssapi/krb5/gssapi_krb5.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/gssapi/krb5/gssapi_krb5.c b/src/lib/gssapi/krb5/gssapi_krb5.c
index 48918b4..068af43 100644
--- a/src/lib/gssapi/krb5/gssapi_krb5.c
+++ b/src/lib/gssapi/krb5/gssapi_krb5.c
@@ -768,7 +768,7 @@ krb5_gss_localname(OM_uint32 *minor,
krb5_free_context(context);
- localname->value = strdup(lname);
+ localname->value = gssalloc_strdup(lname);
localname->length = strlen(lname);
return (code == 0) ? GSS_S_COMPLETE : GSS_S_FAILURE;
--
1.7.6.3
More information about the krbdev
mailing list