Skip to content

Commit

Permalink
lwip: Fix ICMP Ping on specific iface
Browse files Browse the repository at this point in the history
Fix broken parentheses in setsockopt call

Merges #7397
  • Loading branch information
ivmarkov authored and david-cermak committed Aug 19, 2021
1 parent c81d452 commit ee531c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lwip/apps/ping/ping_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ esp_err_t esp_ping_new_session(const esp_ping_config_t *config, const esp_ping_c
ESP_LOGE(TAG, "fail to find interface name with netif index %d", config->interface);
goto err;
}
if(setsockopt(ep->sock, SOL_SOCKET, SO_BINDTODEVICE, &iface, sizeof(iface) !=0)) {
if(setsockopt(ep->sock, SOL_SOCKET, SO_BINDTODEVICE, &iface, sizeof(iface)) != 0) {
ESP_LOGE(TAG, "fail to setsockopt SO_BINDTODEVICE");
goto err;
}
Expand Down

0 comments on commit ee531c7

Please sign in to comment.