Browse Source

Add return RTC_ERR_FAILURE at the end of rtcGetLocalDescriptionSdp.

Hanseul Jun 4 years ago
parent
commit
84c298f4f8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/capi.cpp

+ 2 - 0
src/capi.cpp

@@ -547,6 +547,8 @@ int rtcGetLocalDescriptionSdp(int pc, char *buffer, int size) {
 			buffer[size] = '\0';
 			return size + 1;
 		}
+
+		return RTC_ERR_FAILURE;
 	});
 }