]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove unnecessary check
authorAlan T. DeKok <aland@freeradius.org>
Sun, 5 Feb 2017 16:15:37 +0000 (11:15 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 5 Feb 2017 18:17:34 +0000 (13:17 -0500)
src/main/request.c

index 79433ac0244094ca5e77df13b09e409785344799..c1964d01d0e7d5a1134ebca63f3562b103a48d6b 100644 (file)
@@ -342,7 +342,6 @@ int request_data_add(REQUEST *request, void const *unique_ptr, int unique_int, v
 
                        break;  /* replace the existing entry */
                }
-               if (!*last) break;
        }
 
        /*
@@ -417,7 +416,6 @@ void *request_data_get(REQUEST *request, void const *unique_ptr, int unique_int)
 
                        return ptr;
                }
-               if (!*last) break;
        }
 
        return NULL;            /* wasn't found, too bad... */