diff --git a/src/daemon/modules/image/oci/registry/auths.c b/src/daemon/modules/image/oci/registry/auths.c index 32773509e217347dde1371d7063271131166c988..9c57dea2a52f953c5e82369981f2c1ef1d2fe4db 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++; }