diff options
author | ambrop7 <ambrop7@1a93d707-3861-5ebc-ad3b-9740d49b5140> | 2011-05-05 00:37:39 +0400 |
---|---|---|
committer | ambrop7 <ambrop7@1a93d707-3861-5ebc-ad3b-9740d49b5140> | 2011-05-05 00:37:39 +0400 |
commit | 7ceae82325316f220b385530c97bd7f0340f975b (patch) | |
tree | c54cc7252ff400fb33544d1d757ad06279ab7cc3 /lwip | |
parent | 1fd4481f324aa5b84e26b4bbf135ed023079646a (diff) |
lwip/src/core/tcp.c: fix bad sizeof
Diffstat (limited to 'lwip')
-rw-r--r-- | lwip/src/core/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lwip/src/core/tcp.c b/lwip/src/core/tcp.c index 5c6e7a7..5e1f0d7 100644 --- a/lwip/src/core/tcp.c +++ b/lwip/src/core/tcp.c @@ -459,7 +459,7 @@ tcp_bind_to_netif(struct tcp_pcb *pcb, const char ifname[3]) /* Check if the interface is already in use */ for (int i = 0; i < NUM_TCP_PCB_LISTS; i++) { for(struct tcp_pcb *cpcb = *tcp_pcb_lists[i]; cpcb != NULL; cpcb = cpcb->next) { - if (cpcb->bound_to_netif && !memcmp(cpcb->local_netif, ifname, sizeof(ifname))) { + if (cpcb->bound_to_netif && !memcmp(cpcb->local_netif, ifname, sizeof(cpcb->local_netif))) { return ERR_USE; } } |