REST: Fix oidc client lookup
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Mon, 26 Nov 2018 18:34:07 +0000 (19:34 +0100)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Mon, 26 Nov 2018 18:34:07 +0000 (19:34 +0100)
src/rest-plugins/plugin_rest_openid_connect.c

index 2e68b7f99d820fed366452e51438154600f8d800..3a0106c10bd46b6dcf805fc2f59b15dd313782af 100644 (file)
@@ -1492,7 +1492,7 @@ check_authorization (struct RequestHandle *handle,
   }
 
   //check client_id
-  for (handle->ego_entry = handle->ego_head; NULL != handle->ego_entry->next; )
+  for (handle->ego_entry = handle->ego_head; NULL != handle->ego_entry; )
   {
     if ( 0 == strcmp(handle->ego_entry->keystring, client_id))
     {