detect/tls.certs: improve buffer init logic

pull/8482/head
Victor Julien 2 years ago
parent aa4a128fb0
commit f834377c5f

@ -143,8 +143,8 @@ static InspectionBuffer *TlsCertsGetData(DetectEngineThreadCtx *det_ctx,
InspectionBuffer *buffer =
InspectionBufferMultipleForListGet(det_ctx, list_id, cbdata->local_id);
if (buffer == NULL)
return NULL;
if (buffer == NULL || buffer->initialized)
return buffer;
const SSLState *ssl_state = (SSLState *)f->alstate;
const SSLStateConnp *connp;

Loading…
Cancel
Save