From 9d078ac40bbb2090be9134f4a72dfdf7393088bb Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Wed, 30 Aug 2023 18:17:07 +0200 Subject: [PATCH] sip/request: fix check return code (found by coverity) --- src/sip/request.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sip/request.c b/src/sip/request.c index 4c3748d8d..cb60a8801 100644 --- a/src/sip/request.c +++ b/src/sip/request.c @@ -228,6 +228,8 @@ static int request(struct sip_request *req, enum sip_transp tp, if (req->srcport) { struct sip_conncfg cfg = {.srcport = req->srcport}; err = sip_conncfg_set(req->sip, dst, &cfg); + if (err) + goto out; } if (!req->stateful) {