[sr-dev] git:master:c65e0926: rr: fixed warning about unused label in ki_record_route_reset_one()

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 16 11:03:50 CET 2019


Module: kamailio
Branch: master
Commit: c65e0926b26ee9f1cdadb9fbd6f488159275cbea
URL: https://github.com/kamailio/kamailio/commit/c65e0926b26ee9f1cdadb9fbd6f488159275cbea

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-12-16T11:02:57+01:00

rr: fixed warning about unused label in ki_record_route_reset_one()

---

Modified: src/modules/rr/rr_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/c65e0926b26ee9f1cdadb9fbd6f488159275cbea.diff
Patch: https://github.com/kamailio/kamailio/commit/c65e0926b26ee9f1cdadb9fbd6f488159275cbea.patch

---

diff --git a/src/modules/rr/rr_mod.c b/src/modules/rr/rr_mod.c
index fa8345e36c..f61c693cb0 100644
--- a/src/modules/rr/rr_mod.c
+++ b/src/modules/rr/rr_mod.c
@@ -333,10 +333,10 @@ static int ki_record_route_preset_one(sip_msg_t *msg, str *addr1)
 		return -1;
 	}
 
-	if ( record_route_preset( msg, addr1)<0 )
+	if ( record_route_preset(msg, addr1)<0 ) {
 		return -1;
+	}
 
-done:
 	msg->msg_flags |= FL_RR_ADDED;
 	return 1;
 




More information about the sr-dev mailing list