Explorar el Código

pua_reginfo: unlock udomain only when aor is set

- patch by Wonbin Cho, FS#338
Daniel-Constantin Mierla hace 12 años
padre
commit
ed6884e854
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;
 	}