[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.175 and 1.176

version 1.175, 2017/02/08 18:44:50 version 1.176, 2017/02/09 20:14:41
Line 867 
Line 867 
         int s = -1, error, on = 1, save_errno;          int s = -1, error, on = 1, save_errno;
   
         if ((error = getaddrinfo(host, port, &hints, &res0)))          if ((error = getaddrinfo(host, port, &hints, &res0)))
                 errx(1, "getaddrinfo: %s", gai_strerror(error));                  errx(1, "getaddrinfo for host \"%s\" port %s: %s", host,
                       port, gai_strerror(error));
   
         for (res = res0; res; res = res->ai_next) {          for (res = res0; res; res = res->ai_next) {
                 if ((s = socket(res->ai_family, res->ai_socktype |                  if ((s = socket(res->ai_family, res->ai_socktype |

Legend:
Removed from v.1.175  
changed lines
  Added in v.1.176