diff options
Diffstat (limited to 'auth2-chall.c')
-rw-r--r-- | auth2-chall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auth2-chall.c b/auth2-chall.c index 4aff09d80..ead480318 100644 --- a/auth2-chall.c +++ b/auth2-chall.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2-chall.c,v 1.43 2015/07/18 07:57:14 djm Exp $ */ | 1 | /* $OpenBSD: auth2-chall.c,v 1.44 2016/05/02 08:49:03 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2001 Per Allansson. All rights reserved. | 4 | * Copyright (c) 2001 Per Allansson. All rights reserved. |
@@ -122,8 +122,8 @@ kbdint_alloc(const char *devs) | |||
122 | buffer_append(&b, devices[i]->name, | 122 | buffer_append(&b, devices[i]->name, |
123 | strlen(devices[i]->name)); | 123 | strlen(devices[i]->name)); |
124 | } | 124 | } |
125 | buffer_append(&b, "\0", 1); | 125 | if ((kbdintctxt->devices = sshbuf_dup_string(&b)) == NULL) |
126 | kbdintctxt->devices = xstrdup(buffer_ptr(&b)); | 126 | fatal("%s: sshbuf_dup_string failed", __func__); |
127 | buffer_free(&b); | 127 | buffer_free(&b); |
128 | } else { | 128 | } else { |
129 | kbdintctxt->devices = xstrdup(devs); | 129 | kbdintctxt->devices = xstrdup(devs); |