git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Corrected several mis-calls of is_ip_address() that treated the result
[exim.git]
/
src
/
src
/
routers
/
ipliteral.c
diff --git
a/src/src/routers/ipliteral.c
b/src/src/routers/ipliteral.c
index 11bdc6e0800b12990a9497ea183b34808bbbbc59..b091c4e61c8ae5e363cd641fd2d7b6f8a1a12d2f 100644
(file)
--- a/
src/src/routers/ipliteral.c
+++ b/
src/src/routers/ipliteral.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/routers/ipliteral.c,v 1.
3 2005/01/04 10:00:44
ph10 Exp $ */
+/* $Cambridge: exim/src/src/routers/ipliteral.c,v 1.
4 2005/01/11 15:51:03
ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* Exim - an Internet mail transport agent *
@@
-118,7
+118,7
@@
host name to "(unnamed)". */
if (domain[0] != '[' || domain[len-1] != ']') return DECLINE;
domain[len-1] = 0; /* temporarily */
if (domain[0] != '[' || domain[len-1] != ']') return DECLINE;
domain[len-1] = 0; /* temporarily */
-if (
!string_is_ip_address(domain+1, NULL)
)
+if (
string_is_ip_address(domain+1, NULL) == 0
)
{
domain[len-1] = ']';
return DECLINE;
{
domain[len-1] = ']';
return DECLINE;