]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/auth.c
Clear hungup in start_link() instead of connect_tty()
[ppp.git] / pppd / auth.c
index f615fd3ac11f94fc46a13b4008fa3f77ab694c08..fb719446f7489895f0b51081c99b99c8221fd210 100644 (file)
@@ -68,7 +68,7 @@
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#define RCSID  "$Id: auth.c,v 1.116 2008/06/25 10:30:36 paulus Exp $"
+#define RCSID  "$Id: auth.c,v 1.117 2008/07/01 12:27:56 paulus Exp $"
 
 #include <stdio.h>
 #include <stddef.h>
 
 #include <stdio.h>
 #include <stddef.h>
@@ -557,6 +557,7 @@ void start_link(unit)
 
     new_phase(PHASE_SERIALCONN);
 
 
     new_phase(PHASE_SERIALCONN);
 
+    hungup = 0;
     devfd = the_channel->connect();
     msg = "Connect script failed";
     if (devfd < 0)
     devfd = the_channel->connect();
     msg = "Connect script failed";
     if (devfd < 0)