fix: failure response for decompile_function with address

This commit is contained in:
Teal Bauer 2025-04-08 10:50:18 +02:00
parent 52e0142f83
commit bd56f5b6cc

View File

@ -461,7 +461,8 @@ public class GhydraMCPPlugin extends Plugin implements ApplicationLevelPlugin {
resultObj.addProperty("function", ""); resultObj.addProperty("function", "");
resultObj.addProperty("address", address); resultObj.addProperty("address", address);
response.addProperty("success", true); response.addProperty("success", false);
response.addProperty("message", "Function not found");
response.add("result", resultObj); response.add("result", resultObj);
response.addProperty("timestamp", System.currentTimeMillis()); response.addProperty("timestamp", System.currentTimeMillis());
response.addProperty("port", this.port); response.addProperty("port", this.port);