From: Wilfried Göesgens Date: Thu, 11 Feb 2010 18:00:19 +0000 (+0000) Subject: * NULL is the abort condition for an invalid header X-Git-Tag: v7.86~439 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=e3d7efdd9f298cac8e009cfec3d4c631433c657e * NULL is the abort condition for an invalid header --- 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);