summaryrefslogtreecommitdiff
path: root/gss-serv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gss-serv.c')
-rw-r--r--gss-serv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gss-serv.c b/gss-serv.c
index 26eec25bd..56e33d6a2 100644
--- a/gss-serv.c
+++ b/gss-serv.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gss-serv.c,v 1.13 2005/10/13 22:24:31 stevesk Exp $ */ 1/* $OpenBSD: gss-serv.c,v 1.14 2006/02/08 13:15:44 stevesk Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. 4 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
@@ -175,7 +175,7 @@ ssh_gssapi_parse_ename(Gssctxt *ctx, gss_buffer_t ename, gss_buffer_t name)
175 return GSS_S_FAILURE; 175 return GSS_S_FAILURE;
176 176
177 name->value = xmalloc(name->length+1); 177 name->value = xmalloc(name->length+1);
178 memcpy(name->value, tok+offset,name->length); 178 memcpy(name->value, tok+offset, name->length);
179 ((char *)name->value)[name->length] = 0; 179 ((char *)name->value)[name->length] = 0;
180 180
181 return GSS_S_COMPLETE; 181 return GSS_S_COMPLETE;
@@ -234,7 +234,8 @@ ssh_gssapi_cleanup_creds(void)
234{ 234{
235 if (gssapi_client.store.filename != NULL) { 235 if (gssapi_client.store.filename != NULL) {
236 /* Unlink probably isn't sufficient */ 236 /* Unlink probably isn't sufficient */
237 debug("removing gssapi cred file\"%s\"", gssapi_client.store.filename); 237 debug("removing gssapi cred file\"%s\"",
238 gssapi_client.store.filename);
238 unlink(gssapi_client.store.filename); 239 unlink(gssapi_client.store.filename);
239 } 240 }
240} 241}