if ((tosum = (char *) malloc(tcp_pkt_size+sizeof(struct pseudohdr))) != NULL) {
memset(tosum, 0, tcp_pkt_size+sizeof(struct pseudohdr));
psh = (struct pseudohdr *) tosum;
tcp = (struct tcphdr *) pkt->pkt_ptr;
tcp->check = 0;
if ((tosum = (char *) malloc(tcp_pkt_size+sizeof(struct pseudohdr))) != NULL) {
memset(tosum, 0, tcp_pkt_size+sizeof(struct pseudohdr));
psh = (struct pseudohdr *) tosum;
tcp = (struct tcphdr *) pkt->pkt_ptr;
tcp->check = 0;