summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2017-04-27 20:55:52 +0000
committermillert <millert@openbsd.org>2017-04-27 20:55:52 +0000
commitc760a79a40eac0e58b2c6a616426edb9eef0607f (patch)
tree53ebc1757b62bffde2682168df6c15035a22b94e
parenttls_free(3) and tls_config_free(3) accept NULL; (diff)
downloadwireguard-openbsd-c760a79a40eac0e58b2c6a616426edb9eef0607f.tar.xz
wireguard-openbsd-c760a79a40eac0e58b2c6a616426edb9eef0607f.zip
challenge is an array, not a pointer, therefore cannot be NULL.
Quiets a clang warning.
-rw-r--r--libexec/login_radius/login_radius.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/login_radius/login_radius.c b/libexec/login_radius/login_radius.c
index c797610d9ff..9b00f973133 100644
--- a/libexec/login_radius/login_radius.c
+++ b/libexec/login_radius/login_radius.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login_radius.c,v 1.8 2015/11/26 19:59:18 yasuoka Exp $ */
+/* $OpenBSD: login_radius.c,v 1.9 2017/04/27 20:55:52 millert Exp $ */
/*-
* Copyright (c) 1996, 1997 Berkeley Software Design, Inc. All rights reserved.
@@ -183,7 +183,7 @@ main(int argc, char **argv)
strcmp(service, "login") ? challenge : NULL, password, &emsg);
if (c == 0) {
- if (challenge == NULL || *challenge == '\0')
+ if (*challenge == '\0')
(void)fprintf(back, BI_AUTH "\n");
else {
(void)fprintf(back, BI_VALUE " challenge %s\n",