From 538d06aa3b79f154d9f540f767da8e676eefd9f7 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 3 Jul 2025 16:30:53 +0200 Subject: [PATCH] MT#63082 parse crypto and rtcp: on error handling return -1 As macroses do, return -1 and not 0 as in normal case. Change-Id: I25d43142ef1c1c60da56450f07fb0dd6548db693 --- daemon/sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 69e9dd377..b8b740e61 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -730,7 +730,7 @@ static int parse_attribute_crypto(struct sdp_attribute *output) { error: ilog(LOG_ERROR, "Failed to parse a=crypto attribute, ignoring: %s", err); output->attr = ATTR_IGNORE; - return 0; + return -1; } static int parse_attribute_rtcp(struct sdp_attribute *output) { @@ -757,7 +757,7 @@ static int parse_attribute_rtcp(struct sdp_attribute *output) { err: ilog(LOG_WARN, "Failed to parse a=rtcp attribute, ignoring"); output->attr = ATTR_IGNORE; - return 0; + return -1; } static int parse_attribute_candidate(struct sdp_attribute *output, bool extended) {