Skip to content

Commit

Permalink
UdpDiscovery: should catch StringIndexOutOfBoundsException as well
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed Sep 13, 2024
1 parent 61a2c3b commit c5612b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jcifs/netbios/UdpDiscovery.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public void run() {
}
try {
response.readWireFormat(rcv_buf.array(), 0);
} catch (ArrayIndexOutOfBoundsException e) {
} catch (StringIndexOutOfBoundsException | ArrayIndexOutOfBoundsException e) {
log.error("UdpDiscoveryThread", e);
if (log.isTraceEnabled()) log.error("UdpDiscoveryThread", e);
else log.warn("doTcpDiscovery: caught ArrayIndexOutOfBoundsException");
Expand Down

0 comments on commit c5612b7

Please sign in to comment.