sio: fix error message displaying bind address
Now `sio_bind` function prints address into error message directly instead of relying on `fd` used in `bind` that failed to execute. `sio_bind` used `sio_socketname_to_buffer` for error message effectively attempting printing address bound to `fd` while there actually was an error in binding that address to that socket in the first place. Fixes #5925 NO_DOC=bugfix NO_CHANGELOG=minor (cherry picked from commit a5214bfc)
Showing
- src/lib/core/sio.c 49 additions, 13 deletionssrc/lib/core/sio.c
- src/lib/core/sio.h 10 additions, 0 deletionssrc/lib/core/sio.h
- test/unit/sio.c 28 additions, 1 deletiontest/unit/sio.c
- test/unit/unit.h 2 additions, 0 deletionstest/unit/unit.h
- test/unit/uri.c 0 additions, 2 deletionstest/unit/uri.c
Loading
Please register or sign in to comment