From e3d7efdd9f298cac8e009cfec3d4c631433c657e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Thu, 11 Feb 2010 18:00:19 +0000 Subject: [PATCH] * NULL is the abort condition for an invalid header --- citadel/internet_addressing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citadel/internet_addressing.c b/citadel/internet_addressing.c index 1a8bdea12..283321f69 100644 --- a/citadel/internet_addressing.c +++ b/citadel/internet_addressing.c @@ -564,7 +564,7 @@ int convert_field(struct CtdlMessage *msg, const char *beg, const char *end) { if (*pos == ':') colonpos = pos; } - if (colonpos < 0) return(0); /* no colon? not a valid header line */ + if (colonpos == NULL) return(0); /* no colon? not a valid header line */ len = end - beg; key = malloc(len + 2); -- 2.30.2