We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06d7bd9 commit 82fef14Copy full SHA for 82fef14
v3/control.go
@@ -673,6 +673,9 @@ func DecodeControl(packet *ber.Packet) (Control, error) {
673
c := &ControlVChuPasswordMustChange{MustChange: true}
674
return c, nil
675
case ControlTypeVChuPasswordWarning:
676
+ if value == nil || value.Data == nil {
677
+ return nil, fmt.Errorf("invalid value for Control Type ControlTypeVChuPasswordWarning: %v", value)
678
+ }
679
c := &ControlVChuPasswordWarning{Expire: -1}
680
expireStr := ber.DecodeString(value.Data.Bytes())
681
0 commit comments