Browse Source

fix nil pointer handling in MemoryStreamConfig conversion.

pull/1269/head
Darien Raymond 6 years ago
parent
commit
3d3f0a96d6
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 5
      transport/internet/memory_settings.go

5
transport/internet/memory_settings.go

@ -17,7 +17,10 @@ func ToMemoryStreamConfig(s *StreamConfig) (*MemoryStreamConfig, error) {
mss := &MemoryStreamConfig{
ProtocolName: s.GetEffectiveProtocol(),
ProtocolSettings: ets,
SocketSettings: s.SocketSettings,
}
if s != nil {
mss.SocketSettings = s.SocketSettings
}
if s != nil && s.HasSecuritySettings() {

Loading…
Cancel
Save