[sr-dev] git:master:0870ab88: sdpops: don't return 0 if no match for sdp_get_line_startswith()
Daniel-Constantin Mierla
miconda at gmail.com
Fri Jun 19 11:57:56 CEST 2015
Module: kamailio
Branch: master
Commit: 0870ab88262bb61124899ad98d06a72a6cdc7129
URL: https://github.com/kamailio/kamailio/commit/0870ab88262bb61124899ad98d06a72a6cdc7129
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-06-19T11:56:56+02:00
sdpops: don't return 0 if no match for sdp_get_line_startswith()
- that causes exit of config execution
- reported by Sebastian Damm
---
Modified: modules/sdpops/sdpops_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/0870ab88262bb61124899ad98d06a72a6cdc7129.diff
Patch: https://github.com/kamailio/kamailio/commit/0870ab88262bb61124899ad98d06a72a6cdc7129.patch
---
diff --git a/modules/sdpops/sdpops_mod.c b/modules/sdpops/sdpops_mod.c
index 2a4aa6b..f853996 100644
--- a/modules/sdpops/sdpops_mod.c
+++ b/modules/sdpops/sdpops_mod.c
@@ -1657,7 +1657,7 @@ static int w_sdp_get_line_startswith(sip_msg_t *msg, char *avp, char *s_line)
p = find_sdp_line(line.s + line.len, body.s + body.len, sline.s[0]);
}
- return 0;
+ return -1;
}
/**
More information about the sr-dev
mailing list