From a4622ecf176d744bb7ae97503ac7aebe803cb6f6 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Fri, 21 Jun 2013 16:36:18 +0200 Subject: [PATCH] bug in xio-openssl.c that prevented error handling of bad number --- CHANGES | 3 +++ xio-openssl.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 51e284d..f72352a 100644 --- a/CHANGES +++ b/CHANGES @@ -91,6 +91,9 @@ corrections: improved dev_t print format definition + fixed bug in xio-openssl.c that prevented error handling of bad number + of arguments, thanks to Paulik Tamas for reporting + docu mentions option so-bindtodev but correct name is so-bindtodevice. Thanks to Jim Zimmerman for reporting. diff --git a/xio-openssl.c b/xio-openssl.c index 065198c..6b3fd1a 100644 --- a/xio-openssl.c +++ b/xio-openssl.c @@ -301,7 +301,7 @@ static int them, &themlen, us, &uslen, &needbind, &lowport, socktype); if (result != STAT_OK) return STAT_NORETRY; - } else if (argc = 1) { + } else if (argc == 1) { /* or a "non terminal" address without required parameters */ if (xfd->wfd < 0) {