Module: sip-router
Branch: master
Commit: 62f96b72d12c812f5990bb3dd4f1fa862a13a112
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=62f96b7…
Author: Iñaki Baz Castillo <ibc(a)aliax.net>
Committer: Iñaki Baz Castillo <ibc(a)aliax.net>
Date: Wed Jun 1 01:30:03 2011 +0200
ipops: use INET6_ADDRSTRLEN constant for IPv4/IPv6 maximun size.
---
modules/ipops/ipops_mod.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/ipops/ipops_mod.c b/modules/ipops/ipops_mod.c
index 172aefa..19fe95a 100644
--- a/modules/ipops/ipops_mod.c
+++ b/modules/ipops/ipops_mod.c
@@ -133,7 +133,7 @@ static int _compare_ips(char *ip1, size_t len1, enum enum_ip_type
ip1_type, char
{
struct in_addr in_addr1, in_addr2;
struct in6_addr in6_addr1, in6_addr2;
- char _ip1[40], _ip2[40];
+ char _ip1[INET6_ADDRSTRLEN], _ip2[INET6_ADDRSTRLEN];
// Not same IP type, return false.
if (ip1_type != ip2_type)