From 351a8578eb44cce47ffddda5e9b6eeae22a36e02 Mon Sep 17 00:00:00 2001
From: Michael Eischer <eischer@cs.fau.de>
Date: Sat, 25 Jun 2022 18:31:46 +0200
Subject: [PATCH] Update the correct counter when using subidentities

This bug was introduced during the merge.
---
 goatherd.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/goatherd.go b/goatherd.go
index a6e8a5b..af97ce6 100644
--- a/goatherd.go
+++ b/goatherd.go
@@ -456,7 +456,7 @@ func checkOffer(remote string, user string, offer string) (bool, error) {
 
 				if ok {
 					debugf("[%v] ok, set new count", remote)
-					err := setCount(tx, user, nextCtr)
+					err := setCount(tx, name, nextCtr)
 					if err != nil {
 						return false, err
 					}
-- 
GitLab