httpd bug
Gerster Jochen-B01096
B01096@freescale.com
Mon Jul 31 15:55:00 GMT 2006
Hi
here is a patch for the httpd network monitor handler
using ecos on target board with less memory I can happen that
getifaddrs(..) returns with NULL = out of memory but this isn't
checked until now so ....
static cyg_bool cyg_monitor_network( FILE * client, char *filename,
char *formdata, void *arg )
{
struct ifaddrs *iflist, *ifp;
- getifaddrs(&iflist);
+ if(getifaddrs(&iflist)!=0)
+ return 0;
html_begin(client);
html_head(client,"eCos Network Monitor", "");
Jochen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: net.patch.txt
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20060731/870fc426/attachment.txt>
More information about the Ecos-patches
mailing list