summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssh-pkcs11-helper.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c
index 17220d624..d73e83576 100644
--- a/ssh-pkcs11-helper.c
+++ b/ssh-pkcs11-helper.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-pkcs11-helper.c,v 1.22 2020/01/25 00:03:36 djm Exp $ */ 1/* $OpenBSD: ssh-pkcs11-helper.c,v 1.23 2020/03/06 18:26:21 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2010 Markus Friedl. All rights reserved. 3 * Copyright (c) 2010 Markus Friedl. All rights reserved.
4 * 4 *
@@ -324,7 +324,7 @@ cleanup_exit(int i)
324int 324int
325main(int argc, char **argv) 325main(int argc, char **argv)
326{ 326{
327 int r, ch, in, out, max, log_stderr = 0; 327 int r, ch, in, out, log_stderr = 0;
328 ssize_t len; 328 ssize_t len;
329 SyslogFacility log_facility = SYSLOG_FACILITY_AUTH; 329 SyslogFacility log_facility = SYSLOG_FACILITY_AUTH;
330 LogLevel log_level = SYSLOG_LEVEL_ERROR; 330 LogLevel log_level = SYSLOG_LEVEL_ERROR;
@@ -360,12 +360,6 @@ main(int argc, char **argv)
360 in = STDIN_FILENO; 360 in = STDIN_FILENO;
361 out = STDOUT_FILENO; 361 out = STDOUT_FILENO;
362 362
363 max = 0;
364 if (in > max)
365 max = in;
366 if (out > max)
367 max = out;
368
369 if ((iqueue = sshbuf_new()) == NULL) 363 if ((iqueue = sshbuf_new()) == NULL)
370 fatal("%s: sshbuf_new failed", __func__); 364 fatal("%s: sshbuf_new failed", __func__);
371 if ((oqueue = sshbuf_new()) == NULL) 365 if ((oqueue = sshbuf_new()) == NULL)