<div dir="ltr">Hi Sri Lasya,<br><br>Thanks for the v2.<br><br>The fix looks correct. In the original code, if<br>json_object_iter_peek_value() returned NULL (iterator at end),<br>calling continue without first advancing via json_object_iter_next()<br>would result in an infinite loop on the same invalid position.<br><br>This patch correctly advances the iterator before continuing, which<br>prevents that scenario.<div><br></div><div>Thanks ,</div><div><br> Utkal Singh <<a href="mailto:singhutkal015@gmail.com">singhutkal015@gmail.com</a>></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, 16 Mar 2026 at 14:23, <<a href="mailto:lasyaprathipati@gmail.com">lasyaprathipati@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Sri Lasya <<a href="mailto:lasyaprathipati@gmail.com" target="_blank">lasyaprathipati@gmail.com</a>><br>
<br>
---<br>
 lib/remotes/docker_config.c | 4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/lib/remotes/docker_config.c b/lib/remotes/docker_config.c<br>
index b346ee8..6401c1b 100644<br>
--- a/lib/remotes/docker_config.c<br>
+++ b/lib/remotes/docker_config.c<br>
@@ -202,8 +202,10 @@ int erofs_docker_config_lookup(const char *registry,<br>
                }<br>
<br>
                entry = json_object_iter_peek_value(&it);<br>
-                if (!entry)<br>
+                if (!entry) {<br>
+                       json_object_iter_next(&it);<br>
                        continue;<br>
+               }<br>
                if (json_object_object_get_ex(entry, "auth", &auth_field)) {<br>
                        b64 = json_object_get_string(auth_field);<br>
                        if (b64 && *b64) {<br>
-- <br>
2.43.0<br>
<br>
<br>
</blockquote></div>