]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-sock/result.c
ITS#7937 flush data to socket
[openldap] / servers / slapd / back-sock / result.c
index ac0586603cb4287875aa69e187bdf33b2ff68e7b..3fba10fa4eea7e98d65244d059fb32d19c5418ff 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2007-2013 The OpenLDAP Foundation.
+ * Copyright 2007-2014 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -48,6 +48,7 @@ sock_read_and_send_results(
        char    line[BUFSIZ];
        char    ebuf[128];
 
+       (void) fflush(fp);
        /* read in the result and send it along */
        buf = (char *) ch_malloc( BUFSIZ );
        buf[0] = '\0';