diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-11-25 10:08:32 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-11-25 10:08:32 +0000 |
commit | adee7151ece733a333cd26398fce14c34ab6f422 (patch) | |
tree | 443c63a3a0580605a78c0ffa1e9bd4edc5940996 | |
parent | 146b685aaec0a84a366f38b607c63e476d30f28a (diff) |
only flush the stream after writing all records
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@119 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | server/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/protocol.c b/server/protocol.c index c953a85..0c201fd 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -186,10 +186,10 @@ int nslcd_protocol_all(FILE *fp) WRITE_INT32(fp,retv); /* write the entry */ LDF_PROTOCOL; - fflush(fp); } /* write the final result code */ WRITE_INT32(fp,retv); + WRITE_FLUSH(fp); /* FIXME: if a previous call returns what happens to the context? */ _nss_ldap_enter(); _nss_ldap_ent_context_release(protocol_context); |