*/
pos = payload;
- while(*pos != 0 && (pos-buffer) < BUFFSIZE) {
- if (*pos == 0x0d) {
+ while(*pos != 0 && (pos-buffer) < recvd) {
+ if (*pos == 0x0d)
*pos = 0;
- }
if (*pos == 0x0a) {
*pos = 0;
poscnt++;
/* c=<network type> <address type> <connection address> */
- if (poscnt == 2) {
+ if (poscnt == 2)
host = payload + 1;
- }
- if (poscnt > 2) {
+ if (poscnt > 2)
break;
- }
}
payload++;
}
poscnt++;
/* m=<media> <port> <transport> <fmt list> */
- if (poscnt == 1) {
+ if (poscnt == 1)
port = payload + 1;
- }
- if (poscnt == 2) {
+ if (poscnt == 2)
proto = payload + 1;
- }
- if (poscnt > 2) {
+ if (poscnt > 2)
break;
- }
}
payload++;
}