Browse Source

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 5 months ago
parent
commit
538d06aa3b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/sdp.c

+ 2
- 2
daemon/sdp.c View File

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