artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56ac520
)
clear errno before strtoull as it may already be set to ERANGE
author
op
<op@openbsd.org>
Wed, 21 Jun 2023 17:59:24 +0000
(17:59 +0000)
committer
op
<op@openbsd.org>
Wed, 21 Jun 2023 17:59:24 +0000
(17:59 +0000)
noticed and ok millert@
usr.sbin/smtpd/lka_filter.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/lka_filter.c
b/usr.sbin/smtpd/lka_filter.c
index
18ac7c1
..
bb5e8f4
100644
(file)
--- a/
usr.sbin/smtpd/lka_filter.c
+++ b/
usr.sbin/smtpd/lka_filter.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: lka_filter.c,v 1.7
1 2023/06/21 17:56:26
op Exp $ */
+/* $OpenBSD: lka_filter.c,v 1.7
2 2023/06/21 17:59:24
op Exp $ */
/*
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
@@
-605,6
+605,8
@@
lka_filter_process_response(const char *name, const char *line)
if ((ep = strchr(kind, '|')) == NULL)
fatalx("Missing token: %s", line);
qid = ep+1;
+
+ errno = 0;
reqid = strtoull(qid, &ep, 16);
if (qid[0] == '\0' || *ep != '|')
fatalx("Invalid reqid: %s", line);