Torsion of the spermatic cord.