Skip to content

Commit c10e314

Browse files
committed
libraries/WiFi: Fixed undefined socket protocol upon accept.
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
1 parent cb6e937 commit c10e314

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/WiFi/src/SecSocket.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ bool Socket::accept(Socket & client_socket) {
176176
client_socket.remote_ip = IPAddress(peer_addr.ip_address.ip.v4);
177177
client_socket._port = this->_port;
178178
client_socket._status = SOCKET_STATUS_CONNECTED;
179+
client_socket._protocol = this->_protocol;
180+
client_socket._last_error = CY_RSLT_SUCCESS;
179181

180182
return true;
181183
}

0 commit comments

Comments
 (0)