Skip to content

Commit f0209ab

Browse files
committed
Merge branch 'maint'
2 parents 29a08cc + 21f809b commit f0209ab

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Release 0.5.3 (pending)
2+
==========================
3+
4+
- Report error message when accept() fails
5+
16
Release 0.5.2 (2020-07-20)
27
==========================
38

common/SoapyRPCSocket.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ SoapyRPCSocket *SoapyRPCSocket::accept(void)
169169
struct sockaddr_storage addr;
170170
socklen_t addrlen = sizeof(addr);
171171
int client = ::accept(_sock, (struct sockaddr*)&addr, &addrlen);
172+
if (client == INVALID_SOCKET) this->reportError("accept()");
172173
if (client == INVALID_SOCKET) return NULL;
173174
SoapyRPCSocket *clientSock = new SoapyRPCSocket();
174175
clientSock->_sock = client;

0 commit comments

Comments
 (0)