summaryrefslogtreecommitdiff
path: root/nslcd/common.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-12-14 16:12:35 +0000
committerArthur de Jong <arthur@arthurdejong.org>2007-12-14 16:12:35 +0000
commitffadd630887b35a925a234304f7e848f543a6f4f (patch)
tree5831177fc58399d41d1050c4649e3b20fd5fef83 /nslcd/common.c
parent4bd7613784a73b535544ad8fa4c792445b5b1b71 (diff)
explain why we write an invalid address (in comment) and add TODO to describe we need to change the log format
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@495 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/common.c')
-rw-r--r--nslcd/common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nslcd/common.c b/nslcd/common.c
index 5472c93..14600d7 100644
--- a/nslcd/common.c
+++ b/nslcd/common.c
@@ -105,7 +105,9 @@ int write_address(TFILE *fp,const char *addr)
}
else
{
- /* failure, log but write simple invalid address */
+ /* failure, log but write simple invalid address
+ (otherwise the address list is messed up) */
+ /* TODO: have error message in correct format */
log_log(LOG_WARNING,"unparseble address: %s",addr);
/* write an illegal address type */
WRITE_INT32(fp,-1);