rtsp: fix endian bug in challenge computation

on MIPS platform the IP address was reversed...
This commit is contained in:
Quentin Smart
2013-04-03 21:34:02 +11:00
committed by James Laird
parent 89611b826f
commit f01b957fcd
+2 -5
View File
@@ -479,11 +479,8 @@ static void apple_challenge(int fd, rtsp_message *req, rtsp_message *resp) {
#endif
{
struct sockaddr_in *sa = (struct sockaddr_in*)(&fdsa);
unsigned int ip = sa->sin_addr.s_addr;
for (i=0; i<4; i++) {
*bp++ = ip & 0xff;
ip >>= 8;
}
memcpy(bp, &sa->sin_addr.s_addr, 4);
bp += 4;
}
for (i=0; i<6; i++)