diff options
author | 2015-12-11 00:20:04 +0000 | |
---|---|---|
committer | 2015-12-11 00:20:04 +0000 | |
commit | 9a3a39211d2624c319a58d7a9ca00f5c01c09a24 (patch) | |
tree | f0b623016bd589e02fee43b4fe6a2a4b6447fcc7 /usr.bin/ssh/sshconnect2.c | |
parent | Remove a few NULL-checks before free(). I've already removed these (diff) | |
download | wireguard-openbsd-9a3a39211d2624c319a58d7a9ca00f5c01c09a24.tar.xz wireguard-openbsd-9a3a39211d2624c319a58d7a9ca00f5c01c09a24.zip |
Pass (char *)NULL rather than (char *)0 to execl and execlp.
ok dtucker@
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index 8639426dfca..5b8bb27f1b4 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.232 2015/12/10 17:08:40 mmcc Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.233 2015/12/11 00:20:04 mmcc Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved. @@ -1614,7 +1614,7 @@ ssh_keysign(struct sshkey *key, u_char **sigp, size_t *lenp, closefrom(sock + 1); debug3("%s: [child] pid=%ld, exec %s", __func__, (long)getpid(), _PATH_SSH_KEY_SIGN); - execl(_PATH_SSH_KEY_SIGN, _PATH_SSH_KEY_SIGN, (char *) 0); + execl(_PATH_SSH_KEY_SIGN, _PATH_SSH_KEY_SIGN, (char *)NULL); fatal("%s: exec(%s): %s", __func__, _PATH_SSH_KEY_SIGN, strerror(errno)); } |