buglwIP - A Lightweight TCP/IP stack - Bugs: bug #36840, snmp_send_trap() NULL de-reference...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #36840: snmp_send_trap() NULL de-reference if traps configured but no interfaces available

Submitter:  James Smith <rallysmith>
Submitted:  Fri 13 Jul 2012 01:12:18 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Mon 13 Aug 2012 07:39:03 PM UTC, comment #1: 

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Fri 13 Jul 2012 01:12:18 PM UTC, original submission:  

The snmp_send_trap() does a ip_route() call, but does not check the resulting interface pointer.

I have attached a simple patch to fix the NULL de-reference when snmp_init() is called (with traps already configured as described in "doc/snmp_agent.txt") but where no network interfaces are available.

James Smith <rallysmith>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #26196:  snmp_send_trap.patch added by rallysmith (788B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by rallysmith (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-08-13 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
        Planned Release 1.5.0
    2012-07-13 rallysmith Attached File- Added snmp_send_trap.patch, #26196

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code