Fix compile warning in tor_inet_pton() (on 64bit)

This slipped through into 0.2.3.8-alpha unfortunately.
This commit is contained in:
Sebastian Hahn 2011-11-24 09:16:43 +01:00
parent f067067ee6
commit 46d69cb915
2 changed files with 5 additions and 1 deletions

4
changes/bug4554 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes:
- Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
fixes bug 4554.

View File

@ -1733,7 +1733,7 @@ tor_inet_pton(int af, const char *src, void *dst)
return 0;
if (TOR_ISXDIGIT(*src)) {
char *next;
int len;
ssize_t len;
long r = strtol(src, &next, 16);
tor_assert(next != NULL);
tor_assert(next != src);