mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Fix spacing in tor_sscanf() call in tor_inet_aton()
This commit is contained in:
parent
01c6fde326
commit
b062e0f0a4
@ -39,7 +39,7 @@ tor_inet_aton(const char *str, struct in_addr *addr)
|
||||
{
|
||||
unsigned a,b,c,d;
|
||||
char more;
|
||||
if (tor_sscanf(str, "%3u.%3u.%3u.%3u%c", &a,&b,&c,&d,&more) != 4)
|
||||
if (tor_sscanf(str, "%3u.%3u.%3u.%3u%c", &a, &b, &c, &d, &more) != 4)
|
||||
return 0;
|
||||
if (a > 255) return 0;
|
||||
if (b > 255) return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user