Browse Source

Fixed SctpTransport::process()

Paul-Louis Ageneau 5 years ago
parent
commit
87bf676428
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/sctptransport.cpp

+ 3 - 1
src/sctptransport.cpp

@@ -312,8 +312,10 @@ int SctpTransport::handleWrite(void *data, size_t len, uint8_t tos, uint8_t set_
 
 int SctpTransport::process(struct socket *sock, union sctp_sockstore addr, void *data, size_t len,
                            struct sctp_rcvinfo info, int flags) {
-	if (!data)
+	if (!data) {
 		recv(nullptr);
+		return 0;
+	}
 	if (flags & MSG_NOTIFICATION) {
 		processNotification((union sctp_notification *)data, len);
 	} else {