summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2016-08-06 10:49:58 +0100
committerColin Watson <cjwatson@debian.org>2016-08-06 10:49:58 +0100
commita8ed8d256b2e2c05b0c15565a7938028c5192277 (patch)
tree87abbdc914a38b43e4e5bb9581ad1f46eabbf88e /auth2.c
parentf0329aac23c61e1a5197d6d57349a63f459bccb0 (diff)
parent99522ba7ec6963a05c04a156bf20e3ba3605987c (diff)
Import openssh_7.3p1.orig.tar.gz
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth2.c b/auth2.c
index 717796228..9108b8612 100644
--- a/auth2.c
+++ b/auth2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth2.c,v 1.135 2015/01/19 20:07:45 markus Exp $ */ 1/* $OpenBSD: auth2.c,v 1.136 2016/05/02 08:49:03 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -424,8 +424,8 @@ authmethods_get(Authctxt *authctxt)
424 buffer_append(&b, authmethods[i]->name, 424 buffer_append(&b, authmethods[i]->name,
425 strlen(authmethods[i]->name)); 425 strlen(authmethods[i]->name));
426 } 426 }
427 buffer_append(&b, "\0", 1); 427 if ((list = sshbuf_dup_string(&b)) == NULL)
428 list = xstrdup(buffer_ptr(&b)); 428 fatal("%s: sshbuf_dup_string failed", __func__);
429 buffer_free(&b); 429 buffer_free(&b);
430 return list; 430 return list;
431} 431}