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