File: patch

package info (click to toggle)
nat 1:1.0-6
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 524 kB
  • ctags: 1,528
  • sloc: ansic: 9,771; makefile: 79
file content (25 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -Naur nat-1.0.orig/client.c nat-1.0/client.c
--- nat-1.0.orig/client.c	1997-02-17 04:18:04.000000000 +0100
+++ nat-1.0/client.c	2003-02-20 14:24:53.000000000 +0100
@@ -3613,7 +3613,7 @@
   username[0] = '\0';
   while (!done) {
     if (!userfd || !passfd)
-       uppair();
+       done = !uppair();
     else {
        if (fgets(password, sizeof(password), passfd) == NULL) {
           rewind(passfd);
@@ -3636,8 +3636,11 @@
     }
 
     if ((! *username) && (! *password))
-      uppair();				/* sleaze for NT */
+      done = !uppair();				/* sleaze for NT */
 
+    if (done)
+        break; /* Stop when uppair is done */
+    
 #ifdef VERBOSE
   natprintf("[*]--- Attempting to connect with Username: `%s' Password: `%s'\n",
            username, password);