Skip to content

Commit

Permalink
Change assert to verify
Browse files Browse the repository at this point in the history
  • Loading branch information
lokiuox committed Nov 16, 2024
1 parent 380d1bc commit f434851
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.tsunami.plugins.detectors.cves.cve202434102;

import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Verify.verify;
import static com.google.common.collect.ImmutableList.toImmutableList;
import static com.google.common.net.HttpHeaders.CONTENT_TYPE;

Expand Down Expand Up @@ -393,7 +394,7 @@ private boolean isServiceVulnerable(NetworkService networkService) {
Uninterruptibles.sleepUninterruptibly(Duration.ofSeconds(oobSleepDuration));

// payload should never be null here as we should have already returned in that case
assert payload != null;
verify(payload != null);
if (payload.checkIfExecuted()) {
logger.atInfo().log("Vulnerability confirmed via Callback Server.");
return true;
Expand Down

0 comments on commit f434851

Please sign in to comment.