Skip to content

Commit

Permalink
Pull request 2116: fix-nil-deref
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit bf6cfdb
Merge: 3c532f5 4bc5c34
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date:   Mon Dec 25 13:35:45 2023 +0300

    Merge branch 'master' into fix-nil-deref

commit 3c532f5
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date:   Wed Dec 20 13:59:29 2023 +0300

    home: fix nil deref
  • Loading branch information
schzhn committed Dec 25, 2023
1 parent 4bc5c34 commit abf20c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/home/clientshttp.go
Expand Up @@ -378,6 +378,8 @@ func (clients *clientsContainer) handleUpdateClient(w http.ResponseWriter, r *ht

if !ok {
aghhttp.Error(r, w, http.StatusBadRequest, "client not found")

return
}

c, err := clients.jsonToClient(dj.Data, prev)
Expand Down

0 comments on commit abf20c6

Please sign in to comment.