summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2019-10-09 22:59:48 +0100
committerColin Watson <cjwatson@debian.org>2019-10-09 22:59:48 +0100
commit4213eec74e74de6310c27a40c3e9759a08a73996 (patch)
treee97a6dcafc6763aea7c804e4e113c2750cb1400d /auth2.c
parent102062f825fb26a74295a1c089c00c4c4c76b68a (diff)
parentcdf1d0a9f5d18535e0a18ff34860e81a6d83aa5c (diff)
Import openssh_8.1p1.orig.tar.gz
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 16ae1a363..0e7762242 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 */
@@ -717,7 +715,7 @@ auth2_record_info(Authctxt *authctxt, const char *fmt, ...)
717 i = vasprintf(&authctxt->auth_method_info, fmt, ap); 715 i = vasprintf(&authctxt->auth_method_info, fmt, ap);
718 va_end(ap); 716 va_end(ap);
719 717
720 if (i < 0 || authctxt->auth_method_info == NULL) 718 if (i == -1)
721 fatal("%s: vasprintf failed", __func__); 719 fatal("%s: vasprintf failed", __func__);
722} 720}
723 721