Skip to content

Commit 6cd8a3b

Browse files
committed
Fix check for unknown "key"
1 parent 30e3e7b commit 6cd8a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic/svcb.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static really_inline size_t scan_svc_param(
514514
return (void)(*param = &svc_params[(*key = SVC_PARAM_KEY_DOHPATH)]), 7;
515515
else if (memcmp(data, "ohttp", 5) == 0)
516516
return (void)(*param = &svc_params[(*key = SVC_PARAM_KEY_OHTTP)]), 5;
517-
else if (memcmp(data, "key", 0) == 0)
517+
else if (memcmp(data, "key", 3) == 0)
518518
return scan_unknown_svc_param_key(data, key, param);
519519
else
520520
return 0;

0 commit comments

Comments
 (0)