Skip to content

Commit ffecb57

Browse files
Fix null pointer dereferencing for response
1 parent aa82e75 commit ffecb57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/transprocessor/remotetxn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (p *PermProcessor) HandleRemoteTransaction(host string, port int, txn *type
5151

5252
aclClient := protos.NewACLServiceClient(conn)
5353
aclResponse, err := aclClient.ApplyACLEntry(ctx, request)
54-
if err != nil {
54+
if err != nil || aclResponse == nil {
5555
p.errCh <- fmt.Errorf("failed to send ACL request to daemon")
5656
}
5757

0 commit comments

Comments
 (0)