This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
net.patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |