summaryrefslogtreecommitdiff
path: root/src/usr.sbin/ocspcheck/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.sbin/ocspcheck/http.c')
-rw-r--r--src/usr.sbin/ocspcheck/http.c6
1 files changed, 3 insertions, 3 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)) {