Browse code

core: set log prefix only for sip messages

(cherry picked from commit 79a23a4fc154ad1ff174c3a8c2a14c3c5f85f402)

Daniel-Constantin Mierla authored on 11/12/2014 22:37:24
Showing 1 changed files
... ...
@@ -396,7 +396,7 @@ void log_prefix_set(sip_msg_t *msg)
396 396
 {
397 397
 	if(log_prefix_pvs == NULL)
398 398
 		return;
399
-	if(msg==NULL) {
399
+	if(msg==NULL || !IS_SIP(msg)) {
400 400
 		log_prefix_val = NULL;
401 401
 		return;
402 402
 	}