[BACK]Return to netcat.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / nc

Diff for /src/usr.bin/nc/netcat.c between version 1.223 and 1.224

version 1.223, 2022/12/18 12:51:10 version 1.224, 2022/12/18 12:53:18
Line 700 
Line 700 
   
                         ret = 0;                          ret = 0;
                         if (vflag || zflag) {                          if (vflag || zflag) {
                                   int print_info = 1;
   
                                 /* For UDP, make sure we are connected. */                                  /* For UDP, make sure we are connected. */
                                 if (uflag) {                                  if (uflag) {
                                         if (udptest(s) == -1) {                                          /* No info on failed or skipped test. */
                                           if ((print_info = udptest(s)) == -1) {
                                                 ret = 1;                                                  ret = 1;
                                                 continue;                                                  continue;
                                         }                                          }
                                 }                                  }
                                   if (print_info == 1)
                                 connection_info(host, portlist[i],                                          connection_info(host, portlist[i],
                                     uflag ? "udp" : "tcp", ipaddr);                                              uflag ? "udp" : "tcp", ipaddr);
                         }                          }
                         if (Fflag)                          if (Fflag)
                                 fdpass(s);                                  fdpass(s);

Legend:
Removed from v.1.223  
changed lines
  Added in v.1.224