]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-tls: various indent fixes.
authorEric Leblond <eric@regit.org>
Tue, 21 Aug 2012 13:42:10 +0000 (15:42 +0200)
committerEric Leblond <eric@regit.org>
Fri, 24 Aug 2012 10:59:12 +0000 (12:59 +0200)
And delete a useless FIXME.

src/detect-tls.c
src/log-tlslog.c

index 2075494bd6145894dfb50c41bcc6ecf69058b48c..deeab3f1ecfc69f2efd94b719cfc013ccb782eb5 100644 (file)
@@ -290,8 +290,7 @@ static DetectTlsData *DetectTlsSubjectParse (char *str)
     }
 
     /* 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;
     }
@@ -531,7 +530,8 @@ static int DetectTlsIssuerDNSetup (DetectEngineCtx *de_ctx, Signature *s, char *
     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. */
@@ -553,8 +553,10 @@ static int DetectTlsIssuerDNSetup (DetectEngineCtx *de_ctx, Signature *s, char *
     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;
 
 }
@@ -717,7 +719,8 @@ static int DetectTlsFingerprintSetup (DetectEngineCtx *de_ctx, Signature *s, cha
     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. */
@@ -739,8 +742,10 @@ static int DetectTlsFingerprintSetup (DetectEngineCtx *de_ctx, Signature *s, cha
     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;
 
 }
@@ -790,8 +795,9 @@ static int DetectTlsStoreSetup (DetectEngineCtx *de_ctx, Signature *s, char *str
     return 0;
 
 error:
-    if (sm != NULL) SCFree(sm);
-        return -1;
+    if (sm != NULL)
+        SCFree(sm);
+    return -1;
 
 }
 
index a1c9072c656044951060f4feb9a756416ccd17f3..3d808ea95edaff192c15aa927a97889245ef3ae9 100644 (file)
@@ -535,7 +535,6 @@ OutputCtx *LogTlsLogInitCtx(ConfNode *conf)
         }
     }
 
-    /* FIXME config variable here */
     if (SCConfLogOpenGeneric(conf, file_ctx, DEFAULT_LOG_FILENAME) < 0) {
         LogFileFreeCtx(file_ctx);
         return NULL;