Skip to content

Commit 83b7655

Browse files
mahnkongmjuraga
authored andcommitted
BUG/MEDIUM: configuration: Fix nil pointer dereference
1 parent 2eda323 commit 83b7655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataplaneapi_configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func SyncWithFileSettings(server *Server, cfg *configuration.Configuration) { //
3535
configStorage.Dataplaneapi.EnabledListeners = &[]string{"http"}
3636
}
3737
}
38-
if configStorage.Dataplaneapi.EnabledListeners != nil && !misc.HasOSArg("", "scheme", "") {
38+
if configStorage.Dataplaneapi != nil && configStorage.Dataplaneapi.EnabledListeners != nil && !misc.HasOSArg("", "scheme", "") {
3939
server.EnabledListeners = *configStorage.Dataplaneapi.EnabledListeners
4040
}
4141
if configStorage.Dataplaneapi != nil && configStorage.Dataplaneapi.CleanupTimeout != nil && !misc.HasOSArg("", "cleanup-timeout", "") {

0 commit comments

Comments
 (0)