projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4d7b86e
)
* NULL is the abort condition for an invalid header
author
Wilfried Göesgens
<willi@citadel.org>
Thu, 11 Feb 2010 18:00:19 +0000
(18:00 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Thu, 11 Feb 2010 18:00:19 +0000
(18:00 +0000)
citadel/internet_addressing.c
patch
|
blob
|
history
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);