summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth2.c b/auth2.c
index 16ae1a363..9b08757ae 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.156 2019/06/28 05:44:09 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -717,7 +717,7 @@ auth2_record_info(Authctxt *authctxt, const char *fmt, ...)
717 i = vasprintf(&authctxt->auth_method_info, fmt, ap); 717 i = vasprintf(&authctxt->auth_method_info, fmt, ap);
718 va_end(ap); 718 va_end(ap);
719 719
720 if (i < 0 || authctxt->auth_method_info == NULL) 720 if (i == -1)
721 fatal("%s: vasprintf failed", __func__); 721 fatal("%s: vasprintf failed", __func__);
722} 722}
723 723