diff options
author | Matthias Kilian <kili@cvs.openbsd.org> | 2015-07-18 14:36:25 +0000 |
---|---|---|
committer | Matthias Kilian <kili@cvs.openbsd.org> | 2015-07-18 14:36:25 +0000 |
commit | 2d74e6c0ef0ee0588f53d5b73ad5718c7fab319d (patch) | |
tree | 2dd69049b9af8d356e65e02c1ec5d1b7bb03d641 /usr.sbin/httpd | |
parent | 3323f1cf5bc9dc4b70ab30bafc226f4d2871ae4e (diff) |
Fix check against NULL which was reverted by accident in r1.56.
ok reyk@
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r-- | usr.sbin/httpd/server_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/server_file.c b/usr.sbin/httpd/server_file.c index ba0554b128e..9fd9ef20b05 100644 --- a/usr.sbin/httpd/server_file.c +++ b/usr.sbin/httpd/server_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_file.c,v 1.57 2015/07/18 06:00:43 reyk Exp $ */ +/* $OpenBSD: server_file.c,v 1.58 2015/07/18 14:36:24 kili Exp $ */ /* * Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org> @@ -639,7 +639,7 @@ server_file_modified_since(struct http_descriptor *desc, struct stat *st) key.kv_key = "If-Modified-Since"; if ((since = kv_find(&desc->http_headers, &key)) != NULL && - since->kv_value == NULL) { + since->kv_value != NULL) { memset(&tm, 0, sizeof(struct tm)); /* |