Browse code

kemix: fix for get protoid function

Daniel-Constantin Mierla authored on 01/08/2019 09:01:22
Showing 2 changed files
... ...
@@ -1 +1 @@
1
-Subproject commit ebc2c9c949ecbe328c0024842b64af55897c3630
1
+Subproject commit b92a1c899b8c474afadd0cf29dd7cb4ea01a3466
... ...
@@ -478,8 +478,9 @@ static int ki_kx_get_protoid(sip_msg_t *msg)
478 478
 	if(msg==NULL) {
479 479
 		return -1;
480 480
 	}
481
+	memset(&_sr_kemi_kx_xval, 0, sizeof(sr_kemi_xval_t));
481 482
 
482
-	_sr_kemi_kx_xval.vtype = SR_KEMIP_STR;
483
+	_sr_kemi_kx_xval.vtype = SR_KEMIP_INT;
483 484
 	return (int)msg->rcv.proto;
484 485
 }
485 486