Mercurial > pidgin
comparison src/proxy.c @ 8269:79b834d7c2a2
[gaim-migrate @ 8992]
nobody saw that :-P
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 16 Feb 2004 05:55:10 +0000 |
parents | b5dbd1839716 |
children | f24172f53650 |
comparison
equal
deleted
inserted
replaced
8268:7cb79236a645 | 8269:79b834d7c2a2 |
---|---|
1347 } | 1347 } |
1348 | 1348 |
1349 /* Skip past BND.ADDR */ | 1349 /* Skip past BND.ADDR */ |
1350 switch(buf[3]) { | 1350 switch(buf[3]) { |
1351 case 0x01: /* the address is a version-4 IP address, with a length of 4 octets */ | 1351 case 0x01: /* the address is a version-4 IP address, with a length of 4 octets */ |
1352 lseek(source, 4, SEEK_CUR); | 1352 read(source, buf, 4); |
1353 break; | 1353 break; |
1354 case 0x03: /* the address field contains a fully-qualified domain name. The first | 1354 case 0x03: /* the address field contains a fully-qualified domain name. The first |
1355 octet of the address field contains the number of octets of name that | 1355 octet of the address field contains the number of octets of name that |
1356 follow, there is no terminating NUL octet. */ | 1356 follow, there is no terminating NUL octet. */ |
1357 read(source, buf+4, 1); | 1357 read(source, buf, 1); |
1358 lseek(source, buf[4], SEEK_CUR); | 1358 read(source, buf, buf[0]); |
1359 break; | 1359 break; |
1360 case 0x04: /* the address is a version-6 IP address, with a length of 16 octets */ | 1360 case 0x04: /* the address is a version-6 IP address, with a length of 16 octets */ |
1361 lseek(source, 16, SEEK_CUR); | 1361 read(source, buf, 16); |
1362 break; | 1362 break; |
1363 } | 1363 } |
1364 | 1364 |
1365 /* Skip past BND.PORT */ | 1365 /* Skip past BND.PORT */ |
1366 lseek(source, 2, SEEK_CUR); | 1366 read(source, buf, 2); |
1367 | 1367 |
1368 if (phb->account == NULL || | 1368 if (phb->account == NULL || |
1369 gaim_account_get_connection(phb->account) != NULL) { | 1369 gaim_account_get_connection(phb->account) != NULL) { |
1370 | 1370 |
1371 phb->func(phb->data, source, GAIM_INPUT_READ); | 1371 phb->func(phb->data, source, GAIM_INPUT_READ); |