Skip to content

Commit

Permalink
fix coap_socket_strerror() on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkicherer authored and mrdeep1 committed Mar 11, 2025
1 parent 4c7ce99 commit c3b4be2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coap_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,8 @@ coap_socket_format_errno(int error) {
#ifdef _WIN32
const char *
coap_socket_strerror(void) {
return coap_socket_format_errno(WSAGetLastError());
coap_win_error_to_errno();
return coap_socket_format_errno(errno);
}
#else /* _WIN32 */
const char *
Expand Down

0 comments on commit c3b4be2

Please sign in to comment.