summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2008-10-02 14:39:36 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2008-10-02 14:39:36 +0000
commitdbee596f3d9528d981bbadc8302bc2b969966e39 (patch)
tree75299ddeab5d4d2574a83fd02793d0dcfc9606cf /usr.bin/ssh
parentfe6da68ebe01458d4a6595e3b1a93a2efd44809d (diff)
Convert an unchecked strdup to xstrdup. OK deraadt@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c
index fee6d629ff8..893c643ba8c 100644
--- a/usr.bin/ssh/session.c
+++ b/usr.bin/ssh/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.242 2008/08/21 04:09:57 djm Exp $ */
+/* $OpenBSD: session.c,v 1.243 2008/10/02 14:39:35 millert Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -1393,7 +1393,7 @@ do_child(Session *s, const char *command)
char *p, *args;
setproctitle("%s@internal-sftp-server", s->pw->pw_name);
- args = strdup(command ? command : "sftp-server");
+ args = xstrdup(command ? command : "sftp-server");
for (i = 0, (p = strtok(args, " ")); p; (p = strtok(NULL, " ")))
if (i < ARGV_MAX - 1)
argv[i++] = p;