diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 6975eaed..f2c530f5 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -703,8 +703,7 @@ func C_RTMP_Connect(r *C.RTMP, cp *C.RTMPPacket) int { if r.Link.hostname.av_len == 0 { return 0 } - var tmp C.sockaddr_in - memset((*byte)(unsafe.Pointer(&service)), 0, int(unsafe.Sizeof(tmp))) + memset((*byte)(unsafe.Pointer(&service)), 0, int(unsafe.Sizeof(service))) // TODO: port this service.sin_family = C.AF_INET