aboutsummaryrefslogtreecommitdiffstats
path: root/main/ortp/ortp-0.16.1-retval.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/ortp/ortp-0.16.1-retval.patch')
-rw-r--r--main/ortp/ortp-0.16.1-retval.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/ortp/ortp-0.16.1-retval.patch b/main/ortp/ortp-0.16.1-retval.patch
new file mode 100644
index 0000000000..679f8d7d49
--- /dev/null
+++ b/main/ortp/ortp-0.16.1-retval.patch
@@ -0,0 +1,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