Skip to content

Commit d340452

Browse files
committed
fix posthook
1 parent d1f03d1 commit d340452

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rasp/jvm/JVMProbe/src/main/java/com/security/smith/asm/SmithMethodVisitor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,10 @@ public void visitMaxs(final int maxStack, final int maxLocals) {
360360

361361
if (exceptionHook == null || exceptionHook == "") {
362362

363-
if (xHook == null || xHook == "") {
363+
if (postHook == null || postHook == "") {
364364
xHook = "trace";
365+
} else {
366+
xHook = postHook;
365367
}
366368

367369
Type[] types = Type.getArgumentTypes(methodDesc);

0 commit comments

Comments
 (0)