Skip to content

Commit

Permalink
Put back code accidentaly removed in prev commit.
Browse files Browse the repository at this point in the history
(cherry picked from commit 96aca84)
  • Loading branch information
bogdan-iancu committed Mar 5, 2015
1 parent 8439323 commit cb46672
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions udp_server.c
Expand Up @@ -374,6 +374,11 @@ int udp_rcv_loop(void)
else goto error;
}

if (len<MIN_UDP_PACKET) {
LM_DBG("probing packet received len = %d\n", len);
continue;
}

/* we must 0-term the messages, receive_msg expects it */
buf[len]=0; /* no need to save the previous char */

Expand Down

0 comments on commit cb46672

Please sign in to comment.