From e9fc1927b35b0a1c4b5c67078229d61caf83e517 Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 10 Aug 2018 13:31:17 +0930 Subject: [PATCH] Added handling of av_len = 0 etc in C_SocksSetup --- rtmp/rtmp.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 2feff2be..6975eaed 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -591,6 +591,10 @@ func C_SocksSetup(r *C.RTMP, sockshost *C.AVal) { } r.Link.socksport = C.ushort(value) } + } else { + r.Link.sockshost.av_val = nil + r.Link.sockshost.av_len = 0 + r.Link.socksport = 0 } }