diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 | ||