|
@@ -226,6 +226,7 @@ static inline struct ip_addr* str2ip(str* st)
|
|
/* just in case that e.g. the VIA parser get confused */
|
|
/* just in case that e.g. the VIA parser get confused */
|
|
if(unlikely(!st->s || st->len <= 0)) {
|
|
if(unlikely(!st->s || st->len <= 0)) {
|
|
LM_ERR("invalid name, no conversion to IP address possible\n");
|
|
LM_ERR("invalid name, no conversion to IP address possible\n");
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
s=(unsigned char*)st->s;
|
|
s=(unsigned char*)st->s;
|
|
|
|
|
|
@@ -280,6 +281,7 @@ static inline struct ip_addr* str2ip6(str* st)
|
|
/* just in case that e.g. the VIA parser get confused */
|
|
/* just in case that e.g. the VIA parser get confused */
|
|
if(unlikely(!st->s || st->len <= 0)) {
|
|
if(unlikely(!st->s || st->len <= 0)) {
|
|
LM_ERR("invalid name, no conversion to IP address possible\n");
|
|
LM_ERR("invalid name, no conversion to IP address possible\n");
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
/* init */
|
|
/* init */
|
|
if ((st->len) && (st->s[0]=='[')){
|
|
if ((st->len) && (st->s[0]=='[')){
|