ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/negcache.c
(Generate patch)

Comparing hopm/branches/1.0.x/src/negcache.c (file contents):
Revision 5177 by michael, Fri Dec 26 21:08:42 2014 UTC vs.
Revision 5178 by michael, Fri Dec 26 21:16:04 2014 UTC

# Line 210 | Line 210 | void negcache_insert(const char *ipstr)
210     struct bopm_sockaddr ip;
211     struct cnode *n;
212  
213 <   if (!inet_pton(AF_INET, ipstr, &(ip.sa4.sin_addr)))
213 >   if (inet_pton(AF_INET, ipstr, &(ip.sa4.sin_addr)) <= 0)
214     {
215        log_printf("NEGCACHE -> Invalid IPv4 address '%s'", ipstr);
216        return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines