Browse code

core: guarded bitwise test

Daniel-Constantin Mierla authored on 12/04/2018 10:21:52
Showing 1 changed files
... ...
@@ -2909,7 +2909,7 @@ char* create_via_hf( unsigned int *len,
2909 2909
 	}
2910 2910
 
2911 2911
 	/* test and add srvid parameter to local via  */
2912
-	if(msg && msg->msg_flags&FL_ADD_SRVID && server_id!=0) {
2912
+	if(msg && (msg->msg_flags&FL_ADD_SRVID) && server_id!=0) {
2913 2913
 		slen = snprintf(sbuf, 24, ";srvid=%u", (unsigned int)server_id);
2914 2914
 		if(slen<=0 || slen>=24) {
2915 2915
 			LM_WARN("failed to buld srvid parameter");