diff src/auth/mech-winbind.c @ 6225:336ad0e3c78f HEAD

Assert-crashfix.
author Timo Sirainen <tss@iki.fi>
date Tue, 07 Aug 2007 14:38:13 +0300
parents 657931e0af80
children 315b954801f7
line wrap: on
line diff
--- a/src/auth/mech-winbind.c	Tue Aug 07 14:35:34 2007 +0300
+++ b/src/auth/mech-winbind.c	Tue Aug 07 14:38:13 2007 +0300
@@ -59,7 +59,8 @@
 	int infd[2], outfd[2];
 	pid_t pid;
 
-	i_assert(winbind->in_pipe == NULL);
+	if (winbind->in_pipe != NULL)
+		return;
 
 	if (pipe(infd) < 0) {
 		i_error("pipe() failed: %m");