1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-24 18:16:24 +01:00

remove single qoutes from bytes() in order to Python 3.10 compatibility

This commit is contained in:
Alex Romero 2023-02-17 10:47:13 -05:00
parent 728c9cb397
commit d93a38a604
No known key found for this signature in database

@ -1777,7 +1777,7 @@ def stdapi_net_config_get_arp_table(request, response):
result = GetIpNetTable(ipnet_table, size, False)
if result == ERROR_INSUFFICIENT_BUFFER:
ipnet_table = ctypes.cast(ctypes.create_string_buffer(bytes(''), size.value), ctypes.c_void_p)
ipnet_table = ctypes.cast(ctypes.create_string_buffer(bytes(), size.value), ctypes.c_void_p)
elif result != ERROR_SUCCESS and result != ERROR_NO_DATA:
return error_result_windows(result), response