dfa121d9d9
o Allow radius and presence modules to be turned off; o don't override CFLAGS; o don't duplicate error messages to the console; o postgresql backend doesn't set NULL flag on results properly, so that don't use VAL_NULL() macros on them; o reconnect to MySQL db when necessary; o relax transaction matching rules, so that it works with wider range of phones; o add some missed sanity checks in usrloc; o ignore incoming UDP messages that are shorter than certain limin (128 bytes). They cannot be SIP messages anyway.
16 lines
337 B
C
16 lines
337 B
C
|
|
$FreeBSD$
|
|
|
|
--- modules/usrloc/urecord.c
|
|
+++ modules/usrloc/urecord.c
|
|
@@ -502,8 +502,8 @@
|
|
|
|
ptr = _r->contacts;
|
|
while(ptr) {
|
|
- if ((_c->len == ptr->c.len) &&
|
|
- !memcmp(_c->s, ptr->c.s, _c->len)) {
|
|
+ if (_c == NULL || ((_c->len == ptr->c.len) &&
|
|
+ !memcmp(_c->s, ptr->c.s, _c->len))) {
|
|
*_co = ptr;
|
|
return 0;
|
|
}
|