Commit db034bc8 authored by jehan's avatar jehan
Browse files

fix message parser lite for very short keepalive

parent c7b75331
......@@ -94,7 +94,7 @@ static int get_message_start_pos(char *buff, size_t bufflen) {
char sip_version[9];
int saved_char1_index;
for(i=0; i<bufflen-12;i++) { /*9=strlen( SIP/2.0\r\n)*/
for(i=0; i<(int)bufflen-12;i++) { /*9=strlen( SIP/2.0\r\n)*/
saved_char1_index=bufflen-1;
saved_char1=buff[saved_char1_index]; /*make sure buff is null terminated*/
buff[saved_char1_index]='\0';
......
......@@ -125,10 +125,10 @@ static int on_udp_data(belle_sip_udp_listening_point_t *lp, unsigned int events)
}
if (chan){
/*notify the channel*/
belle_sip_message("Notifying udp channel, local [%s:%i] remote [%s:%i], [%i]",chan->local_ip
,chan->local_port
,chan->peer_name
,chan->peer_port);
belle_sip_message("Notifying udp channel, local [%s:%i] remote [%s:%i]",chan->local_ip
,chan->local_port
,chan->peer_name
,chan->peer_port);
belle_sip_channel_process_data(chan,events);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment