Added handling of av_len = 0 etc in C_SocksSetup

This commit is contained in:
saxon 2018-08-10 13:31:17 +09:30
parent cfe7689e31
commit e9fc1927b3
1 changed files with 4 additions and 0 deletions

View File

@ -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
}
}