The Lorenz system presents a double-zero bifurcation (a double-zero eigenvalue with geometric multiplicity two). However, its study by means of standard techniques is not possible because it occurs for a non-isolated equilibrium. To circumvent this difficulty, we add in the third equation a new term, Dz2\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$Dz^2$$\\end{document}. In this Lorenz-like system, the analysis of the double-zero bifurcation of the equilibrium at the origin guarantees, for certain values of the parameters, the existence of a heteroclinic cycle between the two equilibria located on the z-axis. The numerical continuation in parameter space of the locus of heteroclinic connections allows to detect various degeneracies of codimension two and three, some of which have not been previously studied in the literature. These bifurcations are organizing centers of the complicated dynamics exhibited by this system. Furthermore, studying how the bifurcation sets evolve when D tends to zero, we are able to explain, in the Lorenz system, the origin of several global connections which are related to T-point heteroclinic loops.