librtmp: Avoid an infiniloop setting connection arguments

Message ID 20160626120210.EF67D5DAE2@aruru.libav.org
State New
Headers show

Commit Message

Janne Grunau June 26, 2016, 12:02 p.m.
Module: libav
Branch: master
Commit: 4dbfcd07570a9e45e9597561023adb6da26f27f6

Author:    Luca Barbato <lu_zero@gentoo.org>
Committer: Luca Barbato <lu_zero@gentoo.org>
Date:      Wed Jun 22 06:36:31 2016 +0200

librtmp: Avoid an infiniloop setting connection arguments

The exit condition was missing.

CC: libav-stable@libav.org

---

 libavformat/librtmp.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/libavformat/librtmp.c b/libavformat/librtmp.c
index 2e5e641..97c8ad6 100644
--- a/libavformat/librtmp.c
+++ b/libavformat/librtmp.c
@@ -189,6 +189,8 @@  static int rtmp_open(URLContext *s, const char *uri, int flags)
 
             if (sep)
                 p = sep + 1;
+            else
+                break;
         }
     }
     if (ctx->playpath) {