]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
vici: Clear all request messages in case they contain secrets
authorTobias Brunner <tobias@strongswan.org>
Thu, 30 Sep 2021 10:22:59 +0000 (12:22 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 4 Oct 2021 09:30:03 +0000 (11:30 +0200)
src/libcharon/plugins/vici/vici_socket.c

index 58d33587d7b25e6babba387b4a01dd862b0c9924..29e4b0176d130887e46942cbe1d08293c574d22d 100644 (file)
@@ -506,7 +506,7 @@ CALLBACK(process_queue, job_requeue_t,
                        break;
                }
 
-               thread_cleanup_push(free, chunk.ptr);
+               thread_cleanup_push((void*)chunk_clear, &chunk);
                sel->this->inbound(sel->this->user, id, chunk);
                thread_cleanup_pop(TRUE);
        }