}
/* Let's see if we need to escape "'s */
- if (tmp_str[0] == '"')
- {
+ if (tmp_str[0] == '"') {
tmp_str[strlen(tmp_str) - 1] = '\0';
tmp_str += 1;
}
SigMatch *sm = NULL;
tls = DetectTlsIssuerDNParse(str);
- if (tls == NULL) goto error;
+ if (tls == NULL)
+ goto error;
/* Okay so far so good, lets get this into a SigMatch
* and put it in the Signature. */
return 0;
error:
- if (tls != NULL) DetectTlsIssuerDNFree(tls);
- if (sm != NULL) SCFree(sm);
+ if (tls != NULL)
+ DetectTlsIssuerDNFree(tls);
+ if (sm != NULL)
+ SCFree(sm);
return -1;
}
SigMatch *sm = NULL;
tls = DetectTlsFingerprintParse(str);
- if (tls == NULL) goto error;
+ if (tls == NULL)
+ goto error;
/* Okay so far so good, lets get this into a SigMatch
* and put it in the Signature. */
return 0;
error:
- if (tls != NULL) DetectTlsFingerprintFree(tls);
- if (sm != NULL) SCFree(sm);
+ if (tls != NULL)
+ DetectTlsFingerprintFree(tls);
+ if (sm != NULL)
+ SCFree(sm);
return -1;
}
return 0;
error:
- if (sm != NULL) SCFree(sm);
- return -1;
+ if (sm != NULL)
+ SCFree(sm);
+ return -1;
}
}
}
- /* FIXME config variable here */
if (SCConfLogOpenGeneric(conf, file_ctx, DEFAULT_LOG_FILENAME) < 0) {
LogFileFreeCtx(file_ctx);
return NULL;