Explorar el Código

pua_reginfo: handle_notify - fix AoR key parsing

- The AoR key generated by handle_notify no longer includes the domain
  of the AoR when usrloc use_domain isn't enabled

(cherry picked from commit b7e16294ae1bbfe8cc469facf59fc9e3960ff2a4)
(cherry picked from commit 00544a66aad09faf345d54bef7f464f2749ef548)
João Capucho hace 9 meses
padre
commit
e83be98778
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/modules/pua_reginfo/notify.c

+ 2 - 2
src/modules/pua_reginfo/notify.c

@@ -303,10 +303,10 @@ int process_body(str notify_body, udomain_t *domain)
 
 		if(reginfo_use_domain) {
 			aor_key.s = uri;
+			aor_key.len = strlen(uri);
 		} else {
-			aor_key.s = parsed_aor.user.s;
+			aor_key = parsed_aor.user;
 		}
-		aor_key.len = strlen(aor_key.s);
 		/* Now let's lock that domain for this AOR: */
 		ul.lock_udomain(domain, &aor_key);
 		/* and retrieve the user-record for this user: */