summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-01-22 23:24:33 +1100
committerDamien Miller <djm@mindrot.org>2002-01-22 23:24:33 +1100
commita5ebe0c39d30ce6c22bf152c638ea753c531ecb2 (patch)
tree0788438274d595f3ca433df112e9734594722ced
parent7d05339c709efbf699e0dae499308428174a0da4 (diff)
- markus@cvs.openbsd.org 2002/01/11 20:14:11
[auth2-chall.c auth-skey.c] use strlcpy not strlcat; mouring@
-rw-r--r--ChangeLog5
-rw-r--r--auth-skey.c5
-rw-r--r--auth2-chall.c5
3 files changed, 8 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index e4e88111d..f211d6194 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -137,6 +137,9 @@
137 successful authentication (the drafts requirement). 137 successful authentication (the drafts requirement).
138 serverloop/clientloop now send a 'UNIMPLEMENTED' message instead 138 serverloop/clientloop now send a 'UNIMPLEMENTED' message instead
139 of exiting. 139 of exiting.
140 - markus@cvs.openbsd.org 2002/01/11 20:14:11
141 [auth2-chall.c auth-skey.c]
142 use strlcpy not strlcat; mouring@
140 143
141 144
14220020121 14520020121
@@ -7285,4 +7288,4 @@
7285 - Wrote replacements for strlcpy and mkdtemp 7288 - Wrote replacements for strlcpy and mkdtemp
7286 - Released 1.0pre1 7289 - Released 1.0pre1
7287 7290
7288$Id: ChangeLog,v 1.1761 2002/01/22 12:24:13 djm Exp $ 7291$Id: ChangeLog,v 1.1762 2002/01/22 12:24:33 djm Exp $
diff --git a/auth-skey.c b/auth-skey.c
index 6dc71223b..fd0fcfc95 100644
--- a/auth-skey.c
+++ b/auth-skey.c
@@ -22,7 +22,7 @@
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24#include "includes.h" 24#include "includes.h"
25RCSID("$OpenBSD: auth-skey.c,v 1.13 2001/12/19 07:18:56 deraadt Exp $"); 25RCSID("$OpenBSD: auth-skey.c,v 1.14 2002/01/11 20:14:11 markus Exp $");
26 26
27#ifdef SKEY 27#ifdef SKEY
28 28
@@ -60,8 +60,7 @@ skey_query(void *ctx, char **name, char **infotxt,
60 60
61 len = strlen(challenge) + strlen(PROMPT) + 1; 61 len = strlen(challenge) + strlen(PROMPT) + 1;
62 p = xmalloc(len); 62 p = xmalloc(len);
63 p[0] = '\0'; 63 strlcpy(p, challenge, len);
64 strlcat(p, challenge, len);
65 strlcat(p, PROMPT, len); 64 strlcat(p, PROMPT, len);
66 (*prompts)[0] = p; 65 (*prompts)[0] = p;
67 66
diff --git a/auth2-chall.c b/auth2-chall.c
index d9268cb50..92d0020e0 100644
--- a/auth2-chall.c
+++ b/auth2-chall.c
@@ -23,7 +23,7 @@
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2-chall.c,v 1.13 2001/12/28 15:06:00 markus Exp $"); 26RCSID("$OpenBSD: auth2-chall.c,v 1.14 2002/01/11 20:14:11 markus Exp $");
27 27
28#include "ssh2.h" 28#include "ssh2.h"
29#include "auth.h" 29#include "auth.h"
@@ -291,8 +291,7 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt)
291 len = strlen("keyboard-interactive") + 2 + 291 len = strlen("keyboard-interactive") + 2 +
292 strlen(kbdintctxt->device->name); 292 strlen(kbdintctxt->device->name);
293 method = xmalloc(len); 293 method = xmalloc(len);
294 method[0] = '\0'; 294 strlcpy(method, "keyboard-interactive", len);
295 strlcat(method, "keyboard-interactive", len);
296 strlcat(method, "/", len); 295 strlcat(method, "/", len);
297 strlcat(method, kbdintctxt->device->name, len); 296 strlcat(method, kbdintctxt->device->name, len);
298 297