Browse Source

Fixed bug #31385: sizeof(struct sockaddr) is 30 but should be 16

STABLE-2_1_x
goldsimon 16 years ago
parent
commit
704d90f693
  1. 3
      CHANGELOG
  2. 2
      src/include/lwip/sockets.h

3
CHANGELOG

@ -229,6 +229,9 @@ HISTORY
++ Bugfixes:
2010-10-20: Simon Goldschmidt
* sockets.h: Fixed bug #31385: sizeof(struct sockaddr) is 30 but should be 16
2010-10-05: Simon Goldschmidt
* dhcp.c: Once again fixed #30038: DHCP/AutoIP cooperation failed when
replugging the network cable after an AutoIP address was assigned.

2
src/include/lwip/sockets.h

@ -59,7 +59,7 @@ struct sockaddr_in {
struct sockaddr {
u8_t sa_len;
u8_t sa_family;
u16_t sa_data[14];
char sa_data[14];
};
#ifndef socklen_t

Loading…
Cancel
Save