comparison th_network.c @ 114:b44a0308b53f

Add missing else statement.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 21 Jun 2014 22:59:53 +0300
parents 059f48a04024
children bc540c5bfaf9
comparison
equal deleted inserted replaced
113:059f48a04024 114:b44a0308b53f
399 err = THERR_NOT_SUPPORTED; 399 err = THERR_NOT_SUPPORTED;
400 th_conn_err(conn, err, 400 th_conn_err(conn, err,
401 "No authentication method could be negotiated with the server.\n"); 401 "No authentication method could be negotiated with the server.\n");
402 goto out; 402 goto out;
403 } 403 }
404 404 else
405 if (auth == TH_SOCKS5_AUTH_USER) 405 if (auth == TH_SOCKS5_AUTH_USER)
406 { 406 {
407 // Attempt user/pass authentication (RFC 1929) 407 // Attempt user/pass authentication (RFC 1929)
408 bufsiz = 1 + 1 + 1 + userid_len + passwd_len; 408 bufsiz = 1 + 1 + 1 + userid_len + passwd_len;
409 if ((ptr = buf = th_conn_bufmalloc(conn, bufsiz)) == NULL) 409 if ((ptr = buf = th_conn_bufmalloc(conn, bufsiz)) == NULL)