1
0
Fork 0

Minor fix, better detection of IPv6 addresses.

This commit is contained in:
bagyenda 2006-05-06 14:29:14 +00:00
parent 142c9f8342
commit bc4ef69c40
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
#include <sys/wait.h>
#include <errno.h>
#include <dlfcn.h>
#include <strings.h>
#include <errno.h>
#include <sys/types.h>
@ -135,7 +136,7 @@ Octstr *mms_find_sender_ip(List *request_hdrs, Octstr *ip_header, Octstr *ip, in
s = octstr_get_cstr(xip);
/* Crude test for ipv6 */
*isv6 = (index(s, ':') >= 0);
*isv6 = (index(s, ':') != NULL);
return xip;
}