summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/auth2.c b/auth2.c
index d60e7f1f2..92a6bcaf4 100644
--- a/auth2.c
+++ b/auth2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth2.c,v 1.155 2019/03/25 22:34:52 djm Exp $ */ 1/* $OpenBSD: auth2.c,v 1.157 2019/09/06 04:53:27 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -37,6 +37,7 @@
37#include <unistd.h> 37#include <unistd.h>
38#include <time.h> 38#include <time.h>
39 39
40#include "stdlib.h"
40#include "atomicio.h" 41#include "atomicio.h"
41#include "xmalloc.h" 42#include "xmalloc.h"
42#include "ssh2.h" 43#include "ssh2.h"
@@ -51,14 +52,11 @@
51#include "auth.h" 52#include "auth.h"
52#include "dispatch.h" 53#include "dispatch.h"
53#include "pathnames.h" 54#include "pathnames.h"
54#include "sshbuf.h"
55#include "ssherr.h" 55#include "ssherr.h"
56
57#ifdef GSSAPI 56#ifdef GSSAPI
58#include "ssh-gss.h" 57#include "ssh-gss.h"
59#endif 58#endif
60#include "monitor_wrap.h" 59#include "monitor_wrap.h"
61#include "ssherr.h"
62#include "digest.h" 60#include "digest.h"
63 61
64/* import */ 62/* import */
@@ -725,7 +723,7 @@ auth2_record_info(Authctxt *authctxt, const char *fmt, ...)
725 i = vasprintf(&authctxt->auth_method_info, fmt, ap); 723 i = vasprintf(&authctxt->auth_method_info, fmt, ap);
726 va_end(ap); 724 va_end(ap);
727 725
728 if (i < 0 || authctxt->auth_method_info == NULL) 726 if (i == -1)
729 fatal("%s: vasprintf failed", __func__); 727 fatal("%s: vasprintf failed", __func__);
730} 728}
731 729