Compute the pstr size correctly in handshake