]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/header.c
TLS: log input for pipelining violation
[user/henk/code/exim.git] / src / src / header.c
index e2b3d8a9c2c9f92d0c5f69efe1682adc5704313d..59a9a13b304d4eba2e800bb0db952ffe284c8b5f 100644 (file)
@@ -30,11 +30,12 @@ Returns:    TRUE or FALSE
 */
 
 BOOL
-header_testname(header_line *h, const uschar *name, int len, BOOL notdel)
+header_testname(const header_line * h, const uschar * name, int len,
+  BOOL notdel)
 {
 uschar *tt;
 if (h->type == '*' && notdel) return FALSE;
-if (h->text == NULL || strncmpic(h->text, name, len) != 0) return FALSE;
+if (!h->text || strncmpic(h->text, name, len) != 0) return FALSE;
 tt = h->text + len;
 while (*tt == ' ' || *tt == '\t') tt++;
 return *tt == ':';
@@ -46,11 +47,11 @@ return *tt == ':';
    header_testname() above. */
 
 BOOL
-header_testname_incomplete(header_line *h, const uschar *name,
+header_testname_incomplete(const header_line * h, const uschar * name,
     int len, BOOL notdel)
 {
 if (h->type == '*' && notdel) return FALSE;
-if (h->text == NULL || strncmpic(h->text, name, len) != 0) return FALSE;
+if (!h->text || strncmpic(h->text, name, len) != 0) return FALSE;
 return TRUE;
 }
 
@@ -521,7 +522,7 @@ if (s && *s)
        }
       else
         llen = 0;
-      LDONE:
+      LDONE: ;
       }
     else                               /* rest of s fits in line */
       {