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

Diff for /src/usr.bin/nc/socks.c between version 1.22 and 1.23

version 1.22, 2015/12/10 16:49:28 version 1.23, 2015/12/10 18:31:52
Line 278 
Line 278 
                 if (cnt != 4)                  if (cnt != 4)
                         err(1, "read failed (%zu/4)", cnt);                          err(1, "read failed (%zu/4)", cnt);
                 if (buf[1] != 0) {                  if (buf[1] != 0) {
                         errx(1, "connection failed, SOCKS error: %s",                          errx(1, "connection failed, SOCKSv5 error: %s",
                             socks5_strerror(buf[1]));                              socks5_strerror(buf[1]));
                 }                  }
                 switch (buf[3]) {                  switch (buf[3]) {
Line 316 
Line 316 
                 if (cnt != 8)                  if (cnt != 8)
                         err(1, "read failed (%zu/8)", cnt);                          err(1, "read failed (%zu/8)", cnt);
                 if (buf[1] != 90) {                  if (buf[1] != 90) {
                         errx(1, "connection failed, SOCKS error: %s",                          errx(1, "connection failed, SOCKSv4 error: %s",
                             socks4_strerror(buf[1]));                              socks4_strerror(buf[1]));
                 }                  }
         } else if (socksv == -1) {          } else if (socksv == -1) {

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23