diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2019-06-14 03:28:20 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2019-06-14 03:28:20 +0000 |
commit | 85a2cb49c61dbc7a147cbb40adf63184c7b87a21 (patch) | |
tree | 3dc4793f1bbfe3f802cf8bed874756f1d73f193f /usr.bin | |
parent | 5074f0d20c8b6f02595a8bcf08a9e9050e044ab7 (diff) |
if passed a bad fd, log what it was
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/ssh-keysign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keysign.c b/usr.bin/ssh/ssh-keysign.c index a41285a259e..13b6137bf18 100644 --- a/usr.bin/ssh/ssh-keysign.c +++ b/usr.bin/ssh/ssh-keysign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keysign.c,v 1.57 2019/06/06 05:13:13 otto Exp $ */ +/* $OpenBSD: ssh-keysign.c,v 1.58 2019/06/14 03:28:19 djm Exp $ */ /* * Copyright (c) 2002 Markus Friedl. All rights reserved. * @@ -244,7 +244,7 @@ main(int argc, char **argv) if ((r = sshbuf_get_u32(b, (u_int *)&fd)) != 0) fatal("%s: buffer error: %s", __progname, ssh_err(r)); if (fd < 0 || fd == STDIN_FILENO || fd == STDOUT_FILENO) - fatal("bad fd"); + fatal("bad fd = %d", fd); if ((host = get_local_name(fd)) == NULL) fatal("cannot get local name for fd"); |