From 0a67ca732c6d5e2b46706c6858168370e2443fb1 Mon Sep 17 00:00:00 2001 From: WangFengTu Date: Sat, 1 Aug 2020 15:43:46 +0800 Subject: [PATCH] fix bug of logout Signed-off-by: WangFengTu --- src/daemon/modules/image/oci/registry/auths.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/modules/image/oci/registry/auths.c b/src/daemon/modules/image/oci/registry/auths.c index 3277350..9c57dea 100644 --- a/src/daemon/modules/image/oci/registry/auths.c +++ b/src/daemon/modules/image/oci/registry/auths.c @@ -449,9 +449,9 @@ static void delete_auth(registry_auths *auths, char *host) } // Move to empty position auths->auths->keys[count] = auths->auths->keys[i]; - auths->auths->keys[count] = NULL; + auths->auths->keys[i] = NULL; auths->auths->values[count] = auths->auths->values[i]; - auths->auths->values[count] = NULL; + auths->auths->values[i] = NULL; count++; } -- GitLab