Skip to content
Permalink
Browse files
config: Fix a potential deadlock in config reading
Note that the deadlock has not been seen earlier, in tests on in real Hugo sites.

Fixes #8791
  • Loading branch information
bep committed Jul 30, 2021
1 parent 41c6c52 commit 94b616bdfad177daa99f5e87535943f509198f6f
Showing with 1 addition and 0 deletions.
  1. +1 −0 config/defaultConfigProvider.go
@@ -89,6 +89,7 @@ func (c *defaultConfigProvider) Get(k string) interface{} {
c.mu.RLock()
key, m := c.getNestedKeyAndMap(strings.ToLower(k), false)
if m == nil {
c.mu.RUnlock()
return nil
}
v := m[key]

0 comments on commit 94b616b

Please sign in to comment.