Minor fix, better detection of IPv6 addresses.
This commit is contained in:
parent
142c9f8342
commit
bc4ef69c40
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue