diff options
author | benno <benno@openbsd.org> | 2019-11-04 14:58:37 +0000 |
---|---|---|
committer | benno <benno@openbsd.org> | 2019-11-04 14:58:37 +0000 |
commit | 41eded9ec3f180f5dd144eaa2b74d863e6f9a158 (patch) | |
tree | 5fedfc285ebb2b6eeef430390a34e603a09e8e46 /usr.sbin/httpd | |
parent | Remove engine argument from load_cert() calls. (diff) | |
download | wireguard-openbsd-41eded9ec3f180f5dd144eaa2b74d863e6f9a158.tar.xz wireguard-openbsd-41eded9ec3f180f5dd144eaa2b74d863e6f9a158.zip |
remove useless NULL check, it's checked 7 lines further up.
found by Clemens Goessnitzer, ok and prodded by florian@
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r-- | usr.sbin/httpd/server_http.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/httpd/server_http.c b/usr.sbin/httpd/server_http.c index 9139a738395..326daa6a687 100644 --- a/usr.sbin/httpd/server_http.c +++ b/usr.sbin/httpd/server_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_http.c,v 1.134 2019/10/22 09:31:23 florian Exp $ */ +/* $OpenBSD: server_http.c,v 1.135 2019/11/04 14:58:37 benno Exp $ */ /* * Copyright (c) 2006 - 2018 Reyk Floeter <reyk@openbsd.org> @@ -153,9 +153,6 @@ server_http_authenticate(struct server_config *srv_conf, struct client *clt) if ((clt->clt_remote_user = strdup(clt_user)) == NULL) goto done; - if (clt_pass == NULL) - goto done; - if ((fp = fopen(auth->auth_htpasswd, "r")) == NULL) goto done; |