qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject [qpid-dispatch] branch dev-protocol-adaptors-2 updated: DISPATCH-1779: fix use-after free issue flagged by coverity
Date Wed, 09 Dec 2020 15:49:33 GMT
This is an automated email from the ASF dual-hosted git repository.

kgiusti pushed a commit to branch dev-protocol-adaptors-2
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/dev-protocol-adaptors-2 by this push:
     new 5ae5e65  DISPATCH-1779: fix use-after free issue flagged by coverity
5ae5e65 is described below

commit 5ae5e654b0ca184cdf130277176b096c43b59813
Author: Kenneth Giusti <kgiusti@apache.org>
AuthorDate: Wed Dec 9 10:30:43 2020 -0500

    DISPATCH-1779: fix use-after free issue flagged by coverity
---
 src/adaptors/http_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/adaptors/http_common.c b/src/adaptors/http_common.c
index 3d1d023..9034e37 100644
--- a/src/adaptors/http_common.c
+++ b/src/adaptors/http_common.c
@@ -555,7 +555,7 @@ static void _free_qdr_http_request_info(qdr_http_request_info_t* record)
     if (record->site) {
         free(record->site);
     }
-    for (qdr_http_method_status_t *item = DEQ_HEAD(record->detail); item; item = DEQ_NEXT(item))
{
+    for (qdr_http_method_status_t *item = DEQ_HEAD(record->detail); item; item = DEQ_HEAD(record->detail))
{
         _free_qdr_http_method_status(item);
     }
     free(record);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message