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
pull/1967/head
Donat Zenichev 6 months ago
parent fd763f2804
commit 538d06aa3b

@ -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) {

Loading…
Cancel
Save