projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* NULL is the abort condition for an invalid header
[citadel.git]
/
citadel
/
internet_addressing.c
diff --git
a/citadel/internet_addressing.c
b/citadel/internet_addressing.c
index 1a8bdea1253b06bc1e1c7226f5506dacc131c5fe..283321f69444ed8c176e8f8237cfb60b8dc06f48 100644
(file)
--- 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);