]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SASL heler bugfix from Ian Castle. Forgot to turn off buffering of stdout
authorhno <>
Mon, 1 Apr 2002 16:08:38 +0000 (16:08 +0000)
committerhno <>
Mon, 1 Apr 2002 16:08:38 +0000 (16:08 +0000)
helpers/basic_auth/SASL/sasl_auth.c

index 0f3e4be39f85050a201e36a19ead1d6aa7d2d690..4bdd43b7bc3bbd36d7c87fad79fca1ec9a2e65ed 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: sasl_auth.c,v 1.1 2002/03/30 16:42:59 hno Exp $
+ * $Id: sasl_auth.c,v 1.2 2002/04/01 09:08:38 hno Exp $
  *
  * SASL authenticator module for Squid.
  * Copyright (C) 2002 Ian Castle <ian.castle@coldcomfortfarm.net>
@@ -43,6 +43,9 @@ main()
        int rc;
         sasl_conn_t *conn = NULL;
 
+       /* make standard output line buffered */
+       setvbuf(stdout, NULL, _IOLBF, 0);
+
        rc = sasl_server_init( NULL, APP_NAME_SASL );
 
        if ( rc != SASL_OK ) {