[lib-client] send_request(): handle null nb_pkt

This commit is contained in:
Matteo Cypriani 2011-04-07 10:18:19 +02:00
parent e8332fd0f6
commit 9ddbfde5d5
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ void owlclient_send_request(const int sockfd,
{
uint_fast16_t i ;
if (nb_pkt == 0)
return ;
#ifdef DEBUG
printf("Sent packets: ") ;
#endif // DEBUG