Skip to content

Commit 82a43e3

Browse files
authored
Update exploit.go (#77)
1 parent dfb50d3 commit 82a43e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/exploits/cve20220847/exploit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (v *cve20220847Exploit) Exploit(ctx context.Context, s *state.State, log lo
112112
found = true
113113
if parts[3] != "" {
114114
users := strings.Split(parts[3], ",")
115-
var canAdd bool
115+
canAdd := true
116116
for _, existing := range users {
117117
if existing == u.Username {
118118
log.Printf("NOTE: Your user is already in the %s group - you can likely sudo already...", parts[0])

0 commit comments

Comments
 (0)