lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Sockets.c initialize


From: Frédéric BERNON
Subject: [lwip-users] Sockets.c initialize
Date: Tue, 12 Sep 2006 16:45:21 +0200

Hi Group,

Isn't it necessary to add in sockets.c a line like :

memset( sockets, 0, sizeof(sockets));

Because the "sockets" array doesn't seems to be initialized, and it can cause a 
problem to alloc_socket(...) when we look for an free entry in this table. The 
declaration is :

static struct lwip_socket sockets[NUM_SOCKETS];

Regards 
  
====================================
Frédéric BERNON 
HYMATOM SA 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : address@hidden 
Web Site : http://www.hymatom.fr 
====================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]