瀏覽代碼

pua_reginfo: unlock udomain only when aor is set

- patch by Wonbin Cho, FS#338
Daniel-Constantin Mierla 12 年之前
父節點
當前提交
ed6884e854
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modules/pua_reginfo/notify.c

+ 2 - 1
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;
 	}