Skip to content
Snippets Groups Projects
Commit d0eafd7f authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#6702

parent a5cad3f1
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ OpenLDAP 2.4.24 Engineering
Fixed libldap GnuTLS hang on socket close (ITS#6673)
Fixed libldap sasl partial write handling (ITS#6639)
Fixed libldap url parsing with NULL host (ITS#6653)
Fixed liblutil getpass prompts (ITS#6702)
Fixed ldapsearch segfault with deref (ITS#6638)
Fixed slapd acl parsing overflow (ITS#6611)
Fixed slapd modify to return actual error (ITS#6581)
......
......@@ -102,8 +102,8 @@ lutil_getpass( const char *prompt )
#else
fi = stdin;
#endif
fprintf(stdout, "%s", prompt);
fflush(stdout);
fprintf(stderr, "%s", prompt);
fflush(stderr);
i = 0;
while ( (c = getc(fi)) != EOF && c != '\n' && c != '\r' )
if ( i < (sizeof(pbuf)-1) )
......@@ -111,8 +111,8 @@ lutil_getpass( const char *prompt )
#if defined(HAVE_TERMIOS_H) || defined(HAVE_SGTTY_H)
/* tidy up */
if (fi != stdin) {
fprintf(stdout, "\n");
fflush(stdout);
fprintf(stderr, "\n");
fflush(stderr);
SETFLAGS( ttyb, flags );
if (SETATTR(fileno(fi), &ttyb) < 0)
perror("SETATTR");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment