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

Submitted by:  James Smith <rallysmith>
Submitted on:  Fri 13 Jul 2012 01:12:18 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

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

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
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>

 

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
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by rallysmith (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 13 Aug 2012 07:39:03 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
      Planned Release=>1.5.0
    Fri 13 Jul 2012 01:12:18 PM UTCrallysmithAttached File-=>Added snmp_send_trap.patch, #26196

    Back to the top


    Powered by Savane 3.1-cleanup1