]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
sip: remove extra jsonbuilder close
authorShivani Bhardwaj <shivanib134@gmail.com>
Wed, 15 Jul 2020 17:07:58 +0000 (22:37 +0530)
committerShivani Bhardwaj <shivanib134@gmail.com>
Wed, 15 Jul 2020 17:08:25 +0000 (22:38 +0530)
src/output-json-sip.c

index 3fa4d3595e4c40b545fa177d1ac7842709e3ddf7..7400944b509f349524ce71243a1b4a16d24c1693 100644 (file)
@@ -85,9 +85,6 @@ static int JsonSIPLogger(ThreadVars *tv, void *thread_data,
     if (!rs_sip_log_json(siptx, js)) {
         goto error;
     }
-    if (!jb_close(js)) {
-        goto error;
-    }
 
     MemBufferReset(thread->buffer);
     OutputJsonBuilderBuffer(js, thread->siplog_ctx->file_ctx, &thread->buffer);