summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2016-08-06 10:49:59 +0100
committerColin Watson <cjwatson@debian.org>2016-08-07 12:18:58 +0100
commit477bb7636238c106f8cd7c868a8c0c5eabcfb3db (patch)
tree601176af2ecf358c36b766776a86845ad7a3cd6f /auth2.c
parent747fac2de0d889183f67f6900194c0462c558544 (diff)
parent4c914ccd85bbf391c4dc61b85e3c178fef465e3f (diff)
New upstream release (7.3p1).
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 6eb3cc7b9..461311bda 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 *
@@ -432,8 +432,8 @@ authmethods_get(Authctxt *authctxt)
432 buffer_append(&b, authmethods[i]->name, 432 buffer_append(&b, authmethods[i]->name,
433 strlen(authmethods[i]->name)); 433 strlen(authmethods[i]->name));
434 } 434 }
435 buffer_append(&b, "\0", 1); 435 if ((list = sshbuf_dup_string(&b)) == NULL)
436 list = xstrdup(buffer_ptr(&b)); 436 fatal("%s: sshbuf_dup_string failed", __func__);
437 buffer_free(&b); 437 buffer_free(&b);
438 return list; 438 return list;
439} 439}