summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-09-14 20:54:09 +0000
committerArthur de Jong <arthur@arthurdejong.org>2007-09-14 20:54:09 +0000
commite9fce7a1d546a4fc32f41582a9a792fde669224e (patch)
tree6e5b4045c431307d688866c9bd818cb0245d2059
parent4a6c9a3248ca675cf8b9d5610a64fd2c73eedc34 (diff)
do not flush streams: our caller closes the streams flusing them
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@396 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--nslcd/alias.c2
-rw-r--r--nslcd/ether.c3
-rw-r--r--nslcd/group.c4
-rw-r--r--nslcd/host.c3
-rw-r--r--nslcd/network.c3
-rw-r--r--nslcd/passwd.c3
-rw-r--r--nslcd/protocol.c3
-rw-r--r--nslcd/rpc.c3
-rw-r--r--nslcd/service.c3
-rw-r--r--nslcd/shadow.c2
10 files changed, 0 insertions, 29 deletions
diff --git a/nslcd/alias.c b/nslcd/alias.c
index 9d7f74a..2f9f4a6 100644
--- a/nslcd/alias.c
+++ b/nslcd/alias.c
@@ -159,7 +159,6 @@ int nslcd_alias_byname(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_aliasent(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -193,7 +192,6 @@ int nslcd_alias_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* 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_ent_context_cleanup(&context);
/* we're done */
diff --git a/nslcd/ether.c b/nslcd/ether.c
index eb6c144..03a1b49 100644
--- a/nslcd/ether.c
+++ b/nslcd/ether.c
@@ -201,7 +201,6 @@ int nslcd_ether_byname(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_ether(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -234,7 +233,6 @@ int nslcd_ether_byether(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_ether(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -268,7 +266,6 @@ int nslcd_ether_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* 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_ent_context_cleanup(&context);
/* we're done */
diff --git a/nslcd/group.c b/nslcd/group.c
index 0ba1c4b..910cb6d 100644
--- a/nslcd/group.c
+++ b/nslcd/group.c
@@ -1170,7 +1170,6 @@ int nslcd_group_byname(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_group(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -1208,7 +1207,6 @@ int nslcd_group_bygid(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_group(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -1264,7 +1262,6 @@ int nslcd_group_bymember(TFILE *fp,MYLDAP_SESSION *session)
/* some error occurred */
WRITE_INT32(fp,retv);
}
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -1298,7 +1295,6 @@ int nslcd_group_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* 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_ent_context_cleanup(&context);
/* we're done */
diff --git a/nslcd/host.c b/nslcd/host.c
index 589a16a..0c2ae7a 100644
--- a/nslcd/host.c
+++ b/nslcd/host.c
@@ -317,7 +317,6 @@ int nslcd_host_byname(TFILE *fp,MYLDAP_SESSION *session)
WRITE_INT32(fp,retv);
if (retv==NSLCD_RESULT_SUCCESS)
write_hostent(fp,&result);
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -370,7 +369,6 @@ int nslcd_host_byaddr(TFILE *fp,MYLDAP_SESSION *session)
WRITE_INT32(fp,retv);
if (retv==NSLCD_RESULT_SUCCESS)
write_hostent(fp,&result);
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -404,7 +402,6 @@ int nslcd_host_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* 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_ent_context_cleanup(&context);
/* we're done */
diff --git a/nslcd/network.c b/nslcd/network.c
index 99ead7f..f35a1a0 100644
--- a/nslcd/network.c
+++ b/nslcd/network.c
@@ -195,7 +195,6 @@ int nslcd_network_byname(TFILE *fp,MYLDAP_SESSION *session)
WRITE_INT32(fp,retv);
if (retv==NSLCD_RESULT_SUCCESS)
write_netent(fp,&result);
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -263,7 +262,6 @@ int nslcd_network_byaddr(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_netent(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -297,7 +295,6 @@ int nslcd_network_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* 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_ent_context_cleanup(&context);
/* we're done */
diff --git a/nslcd/passwd.c b/nslcd/passwd.c
index 07b4ad3..92b59fd 100644
--- a/nslcd/passwd.c
+++ b/nslcd/passwd.c
@@ -269,7 +269,6 @@ int nslcd_passwd_byname(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_passwd(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -301,7 +300,6 @@ int nslcd_passwd_byuid(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_passwd(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -335,7 +333,6 @@ int nslcd_passwd_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* write the final result code */
WRITE_INT32(fp,retv);
- WRITE_FLUSH(fp);
/* FIXME: if some statement returns what happens to the context? */
_nss_ldap_ent_context_cleanup(&context);
/* we're done */
diff --git a/nslcd/protocol.c b/nslcd/protocol.c
index d4daec2..37346d9 100644
--- a/nslcd/protocol.c
+++ b/nslcd/protocol.c
@@ -185,7 +185,6 @@ int nslcd_protocol_byname(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_protoent(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -218,7 +217,6 @@ int nslcd_protocol_bynumber(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_protoent(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -253,7 +251,6 @@ int nslcd_protocol_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* 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_ent_context_cleanup(&context);
/* we're done */
diff --git a/nslcd/rpc.c b/nslcd/rpc.c
index e56b032..5e49b28 100644
--- a/nslcd/rpc.c
+++ b/nslcd/rpc.c
@@ -191,7 +191,6 @@ int nslcd_rpc_byname(TFILE *fp,MYLDAP_SESSION *session)
WRITE_INT32(fp,retv);
if (retv==NSLCD_RESULT_SUCCESS)
write_rpcent(fp,&result);
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -223,7 +222,6 @@ int nslcd_rpc_bynumber(TFILE *fp,MYLDAP_SESSION *session)
WRITE_INT32(fp,retv);
if (retv==NSLCD_RESULT_SUCCESS)
write_rpcent(fp,&result);
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -257,7 +255,6 @@ int nslcd_rpc_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* 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_ent_context_cleanup(&context);
/* we're done */
diff --git a/nslcd/service.c b/nslcd/service.c
index 02f6523..402cc46 100644
--- a/nslcd/service.c
+++ b/nslcd/service.c
@@ -300,7 +300,6 @@ int nslcd_service_byname(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_servent(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -335,7 +334,6 @@ int nslcd_service_bynumber(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_servent(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -370,7 +368,6 @@ int nslcd_service_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* 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_ent_context_cleanup(&context);
/* we're done */
diff --git a/nslcd/shadow.c b/nslcd/shadow.c
index a41af72..51892ef 100644
--- a/nslcd/shadow.c
+++ b/nslcd/shadow.c
@@ -239,7 +239,6 @@ int nslcd_shadow_byname(TFILE *fp,MYLDAP_SESSION *session)
if (retv==NSLCD_RESULT_SUCCESS)
if (write_spwd(fp,&result))
return -1;
- WRITE_FLUSH(fp);
/* we're done */
return 0;
}
@@ -273,7 +272,6 @@ int nslcd_shadow_all(TFILE *fp,MYLDAP_SESSION *session)
}
/* 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_ent_context_cleanup(&context);
/* we're done */