Fix warning, unused variable 'accepted_fragsize'

This commit is contained in:
Erik Ekman 2014-01-29 19:33:54 +01:00
parent a7f491f808
commit 97b5e688ef
1 changed files with 2 additions and 2 deletions

View File

@ -2405,7 +2405,6 @@ handshake_set_fragsize(int dns_fd, int fragsize)
read = handshake_waitdns(dns_fd, in, sizeof(in), 'n', 'N', i+1);
if (read > 0) {
int accepted_fragsize;
if (strncmp("BADFRAG", in, 7) == 0) {
fprintf(stderr, "Server rejected fragsize. Keeping default.");
@ -2415,7 +2414,8 @@ handshake_set_fragsize(int dns_fd, int fragsize)
return;
}
accepted_fragsize = ((in[0] & 0xff) << 8) | (in[1] & 0xff);
/* The server returns the accepted fragsize:
accepted_fragsize = ((in[0] & 0xff) << 8) | (in[1] & 0xff) */
return;
}