summaryrefslogtreecommitdiff
path: root/src/usr.sbin/ocspcheck
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.sbin/ocspcheck')
-rw-r--r--src/usr.sbin/ocspcheck/http.c6
-rw-r--r--src/usr.sbin/ocspcheck/http.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/usr.sbin/ocspcheck/http.c b/src/usr.sbin/ocspcheck/http.c
index c5577791d9..df76a04e60 100644
--- a/src/usr.sbin/ocspcheck/http.c
+++ b/src/usr.sbin/ocspcheck/http.c
@@ -1,4 +1,4 @@
1/* $Id: http.c,v 1.4 2017/01/24 10:33:16 deraadt Exp $ */ 1/* $Id: http.c,v 1.5 2017/01/24 10:57:48 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> 3 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
4 * 4 *
@@ -527,7 +527,7 @@ http_head_parse(const struct http *http, struct httpxfer *trans, size_t *sz)
527 /* 527 /*
528 * Allocate headers, then step through the data buffer, parsing 528 * Allocate headers, then step through the data buffer, parsing
529 * out headers as we have them. 529 * out headers as we have them.
530 * We know at this point that the buffer is nil-terminated in 530 * We know at this point that the buffer is NUL-terminated in
531 * the usual way. 531 * the usual way.
532 */ 532 */
533 533
@@ -638,7 +638,7 @@ http_head_read(const struct http *http, struct httpxfer *trans, size_t *sz)
638 * The header data is invalid if it has any binary characters in 638 * The header data is invalid if it has any binary characters in
639 * it: check that now. 639 * it: check that now.
640 * This is important because we want to guarantee that all 640 * This is important because we want to guarantee that all
641 * header keys and pairs are properly nil-terminated. 641 * header keys and pairs are properly NUL-terminated.
642 */ 642 */
643 643
644 if (strlen(trans->hbuf) != (uintptr_t)(ep - trans->hbuf)) { 644 if (strlen(trans->hbuf) != (uintptr_t)(ep - trans->hbuf)) {
diff --git a/src/usr.sbin/ocspcheck/http.h b/src/usr.sbin/ocspcheck/http.h
index b4e66f21d3..6d19771f56 100644
--- a/src/usr.sbin/ocspcheck/http.h
+++ b/src/usr.sbin/ocspcheck/http.h
@@ -1,4 +1,4 @@
1/* $Id: http.h,v 1.1 2017/01/24 08:50:57 beck Exp $ */ 1/* $Id: http.h,v 1.2 2017/01/24 10:57:48 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> 3 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
4 * 4 *
@@ -36,7 +36,7 @@ typedef ssize_t (*readfp)(char *, size_t, const struct http *);
36/* 36/*
37 * HTTP/S header pair. 37 * HTTP/S header pair.
38 * There's also a cooked-up pair, "Status", with the status code. 38 * There's also a cooked-up pair, "Status", with the status code.
39 * Both strings are nil-terminated. 39 * Both strings are NUL-terminated.
40 */ 40 */
41struct httphead { 41struct httphead {
42 const char *key; 42 const char *key;