blob: 679f8d7d49745ae50afc46f540e789db47996f51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
diff -up ortp-0.16.1/src/stun.c.retval ortp-0.16.1/src/stun.c
--- ortp-0.16.1/src/stun.c.retval 2010-09-04 10:14:53.000000000 +0200
+++ ortp-0.16.1/src/stun.c 2010-09-04 10:15:10.000000000 +0200
@@ -1191,6 +1191,7 @@ stunRand(void)
int maxFd=0;
struct timeval tv;
int e;
+ int res;
int fd=open("/dev/random",O_RDONLY);
@@ -1213,7 +1214,7 @@ stunRand(void)
closesocket(fd);
return random();
}
- read(fd,&tick,sizeof(tick));
+ res = read(fd,&tick,sizeof(tick));
closesocket(fd);
}
#else
|