[openssh-commits] [openssh] 01/02: upstream: if passed a bad fd, log what it was

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Jun 14 13:42:47 AEST 2019


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit a5a53914989ddd3521b6edc452bc3291784a4f4f
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Fri Jun 14 03:28:19 2019 +0000

    upstream: if passed a bad fd, log what it was
    
    OpenBSD-Commit-ID: 582e2bd05854e49365195b58989b68ac67f09140
---
 ssh-keysign.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ssh-keysign.c b/ssh-keysign.c
index 9ebc6786..7c14cde8 100644
--- a/ssh-keysign.c
+++ b/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.
  *
@@ -251,7 +251,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");
 

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list