Codebase list dnsviz / 618f7b5
Pass byte string to struct.calcsize() Casey Deccio 7 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
464464 if qtm.tcp:
465465 self.transport_type = socket.SOCK_STREAM
466466 self.req = struct.pack(b'!H', self.req_len) + self.req
467 self.req_len += struct.calcsize('H')
467 self.req_len += struct.calcsize(b'H')
468468 else:
469469 self.transport_type = socket.SOCK_DGRAM
470470