@herlesupreeth commented on this pull request.

Thanks for the fix. I left a few comments. Let me know what you think

> @@ -1241,8 +1233,12 @@ void Snd_Message(peer *p, AAAMessage *msg)
        int send_message_before_session_sm = 0;
        LM_DBG("called to peer [%.*s] for %s with code %d \n", p->fqdn.len,
                        p->fqdn.s, is_req(msg) ? "request" : "response", 
msg->commandCode);
-       if(msg->sessionId)
+       if(msg->sessionId) {
+               // Ensure proper locking order
+               lock_release(p->lock);

I am not sure adding lock part here if the right way. I would prefer this 
function be called with the lock (as mentioned in the comments above at line 
1225). I will let other comment on this.

> @@ -1351,8 +1347,13 @@ void Rcv_Process(peer *p, AAAMessage *msg)
                return;
        }
 
-       if(msg->sessionId)
+       if(msg->sessionId) {
+               // Ensure proper locking order
+               lock_release(p->lock);

same comment as above about the part of having locking parts inside the function

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4191#pullrequestreview-2727880582
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/4191/review/2727880...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to