summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 4e3ae2de7..2ef4201ce 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sshconnect2.c,v 1.125 2003/10/07 01:47:27 dtucker Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.126 2003/10/07 21:58:28 deraadt Exp $");
27 27
28#include "openbsd-compat/sys-queue.h" 28#include "openbsd-compat/sys-queue.h"
29 29
@@ -358,6 +358,7 @@ void
358input_userauth_banner(int type, u_int32_t seq, void *ctxt) 358input_userauth_banner(int type, u_int32_t seq, void *ctxt)
359{ 359{
360 char *msg, *lang; 360 char *msg, *lang;
361
361 debug3("input_userauth_banner"); 362 debug3("input_userauth_banner");
362 msg = packet_get_string(NULL); 363 msg = packet_get_string(NULL);
363 lang = packet_get_string(NULL); 364 lang = packet_get_string(NULL);
@@ -373,10 +374,14 @@ input_userauth_success(int type, u_int32_t seq, void *ctxt)
373 Authctxt *authctxt = ctxt; 374 Authctxt *authctxt = ctxt;
374 if (authctxt == NULL) 375 if (authctxt == NULL)
375 fatal("input_userauth_success: no authentication context"); 376 fatal("input_userauth_success: no authentication context");
376 if (authctxt->authlist) 377 if (authctxt->authlist) {
377 xfree(authctxt->authlist); 378 xfree(authctxt->authlist);
378 if (authctxt->methoddata) 379 authctxt->authlist = NULL;
380 }
381 if (authctxt->methoddata) {
379 xfree(authctxt->methoddata); 382 xfree(authctxt->methoddata);
383 authctxt->methoddata = NULL;
384 }
380 authctxt->success = 1; /* break out */ 385 authctxt->success = 1; /* break out */
381} 386}
382 387
@@ -609,7 +614,7 @@ input_gssapi_token(int type, u_int32_t plen, void *ctxt)
609 614
610 packet_check_eom(); 615 packet_check_eom();
611 616
612 status=ssh_gssapi_init_ctx(gssctxt, options.gss_deleg_creds, 617 status = ssh_gssapi_init_ctx(gssctxt, options.gss_deleg_creds,
613 &recv_tok, &send_tok, NULL); 618 &recv_tok, &send_tok, NULL);
614 619
615 xfree(recv_tok.value); 620 xfree(recv_tok.value);