mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-24 14:05:45 +03:00
Pull request 2116: fix-nil-deref
Squashed commit of the following:
commit bf6cfdb4e2315dc6826daa4c83aef5e961b86ddc
Merge: 3c532f508 4bc5c346a
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Mon Dec 25 13:35:45 2023 +0300
Merge branch 'master' into fix-nil-deref
commit 3c532f50876f3d04c63e1377b1143f2436fd37f2
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Wed Dec 20 13:59:29 2023 +0300
home: fix nil deref
This commit is contained in:
parent
4bc5c346a7
commit
abf20c6dea
1 changed files with 2 additions and 0 deletions
|
@ -378,6 +378,8 @@ func (clients *clientsContainer) handleUpdateClient(w http.ResponseWriter, r *ht
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
aghhttp.Error(r, w, http.StatusBadRequest, "client not found")
|
aghhttp.Error(r, w, http.StatusBadRequest, "client not found")
|
||||||
|
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c, err := clients.jsonToClient(dj.Data, prev)
|
c, err := clients.jsonToClient(dj.Data, prev)
|
||||||
|
|
Loading…
Reference in a new issue