diag: preserve errno in diag_set() and sio_socketname()
malloc() or getsockname() may reset the errno. Let's ensure we preserve errno when setting the diagnostics.
Loading
Please register or sign in to comment
malloc() or getsockname() may reset the errno. Let's ensure we preserve errno when setting the diagnostics.