diff options
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index f7d0644e8..1dddf75aa 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect2.c,v 1.241 2016/04/28 14:30:21 djm Exp $ */ | 1 | /* $OpenBSD: sshconnect2.c,v 1.242 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 | * Copyright (c) 2008 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2008 Damien Miller. All rights reserved. |
@@ -1922,8 +1922,8 @@ authmethods_get(void) | |||
1922 | buffer_append(&b, method->name, strlen(method->name)); | 1922 | buffer_append(&b, method->name, strlen(method->name)); |
1923 | } | 1923 | } |
1924 | } | 1924 | } |
1925 | buffer_append(&b, "\0", 1); | 1925 | if ((list = sshbuf_dup_string(&b)) == NULL) |
1926 | list = xstrdup(buffer_ptr(&b)); | 1926 | fatal("%s: sshbuf_dup_string failed", __func__); |
1927 | buffer_free(&b); | 1927 | buffer_free(&b); |
1928 | return list; | 1928 | return list; |
1929 | } | 1929 | } |