Skip to content

SetReadDeadline causes nil pointer dereference #2889

@thanhpk

Description

@thanhpk

Your environment.

  • Version: v4.0.0-beta.29
  • Browser: include version
  • Stacktrace
/vendor/github.com/pion/webrtc/v4/srtp_writer_future.go:108
/vendor/github.com/pion/webrtc/v4/rtpsender.go:435

What did you do?

Call rtpSender.SetReadDeadline(t)

What did you expect?

Don't panic

What happened?

Panic

This line causes the panic
https://github.com/pion/webrtc/blob/master/srtp_writer_future.go#L108

I dont familiar with the project source code, but shouldn't you must call Store before call Load ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions