projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4166919
)
Collapse two if blocks into one
author
Fabian Keil
<fk@fabiankeil.de>
Thu, 23 Jul 2020 12:00:53 +0000
(14:00 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Thu, 6 Aug 2020 08:28:54 +0000
(10:28 +0200)
Sponsored by: Robert Klemme
ssl.c
patch
|
blob
|
history
diff --git
a/ssl.c
b/ssl.c
index
e2389f0
..
85701ce
100644
(file)
--- a/
ssl.c
+++ b/
ssl.c
@@
-1548,13
+1548,10
@@
static int host_is_ip_address(const char *host)
for (p = host; *p; p++)
{
- if (
*p != '.'
)
+ if (
(*p != '.') && !privoxy_isdigit(*p)
)
{
- if (!privoxy_isdigit(*p))
- {
- /* Not a dot or digit so it can't be an IPv4 address. */
- return 0;
- }
+ /* Not a dot or digit so it can't be an IPv4 address. */
+ return 0;
}
}