buglwIP - A Lightweight TCP/IP stack - Bugs: bug #31170, lwip_setsockopt() does not set...

 
 

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

bug #31170: lwip_setsockopt() does not set socket number

Submitted by:  Martin Velek <allew>
Submitted on:  Thu 30 Sep 2010 11:09:14 AM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

Sat 20 Nov 2010 06:01:47 PM UTC, comment #2:

Fixed, thanks for reporting.

In fact, the only result of that bug was that the debug output showed a wrong value.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 30 Sep 2010 11:12:27 AM UTC, comment #1:

The reason this doesn't normally cause problems is that data.s is only accessed in a debug build.

Kieran Mansley <kieranm>
Project Administrator
Thu 30 Sep 2010 11:09:14 AM UTC, original submission:

The function lwip_setsockopt() below line 2018 fills a lwip_setgetsockopt_data structure for function lwip_setsockopt_internal(). However the socket index for which to change options is not set.
If the lwip_setgetsockopt_data.s is referenced from lwip_setsockopt_internal() it has a random value.

A solution:
Add below line 2018
data.s = s;

The same for function lwip_getsockopt().

Martin Velek <allew>

 

No files currently attached

 

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 kieranm (Posted a comment)
  • -unavailable- added by allew (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 20 Nov 2010 06:01:47 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Thu 30 Sep 2010 11:12:27 AM UTCkieranmPlanned Release=>1.4.0

    Back to the top


    Powered by Savane 3.1-cleanup1