Introduction
Introduction Statistics Contact Development Disclaimer Help
do not allow an empty port field - gopher-validator - Gopher validator and happ…
git clone git://git.codemadness.org/gopher-validator
Log
Files
Refs
README
LICENSE
---
commit 8a541d4834b40fdd55fe0263e19c7c15a748fd57
parent a230aa92f5f19ff3160fd7cdc7acc2810a02839a
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 18 Feb 2022 14:29:12 +0100
do not allow an empty port field
Diffstat:
M gopher-validator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gopher-validator.c b/gopher-validator.c
@@ -366,7 +366,7 @@ checkdir(FILE *fp)
errno = 0;
l = strtoll(v.port, &end, 10);
- if (errno || *end || l < 0 || l > 65535) {
+ if (errno || v.port == end || *end || l < 0 || l > 65535) {
error("%zu: invalid port: %s\n", linenr, v.port);
} else {
#if 0
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.