Module: sip-router
Branch: master
Commit: ed6884e854cdae63c4f62871a32bdcdcddb8853e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ed6884e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Sep 18 22:02:04 2013 +0200
pua_reginfo: unlock udomain only when aor is set
- patch by Wonbin Cho, FS#338
---
modules/pua_reginfo/notify.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/pua_reginfo/notify.c b/modules/pua_reginfo/notify.c
index a6f7428..176c16c 100644
--- a/modules/pua_reginfo/notify.c
+++ b/modules/pua_reginfo/notify.c
@@ -374,7 +374,8 @@ next_contact:
next_registration:
// if (ul_record) ul.release_urecord(ul_record);
/* Unlock the domain for this AOR: */
- ul.unlock_udomain(domain, &aor);
+ if (aor.len > 0)
+ ul.unlock_udomain(domain, &aor);
registrations = registrations->next;
}