Section 124(6) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(6)When a conditional order of discharge has been cancelled under sub-section (5), such person may be arrested by any police officer without warrant, and shall thereupon be produced before the District Magistrate [or Chief Judicial Magistrate] [Inserted by Act XL of 1966.].Unless such person then gives security in accordance with the terms of the original order for the unexpired portion of the term for which he was in the first instance committed or ordered to be detained (such portion being deemed to be a period equal to the period between the date of the breach of the conditions of discharge and the date on which, except for such conditional discharge, he would have been entitled to release), the District Magistrare [or Chief Judicial Magistrate] may remand such person to prison to undergo such un-expired portion.A person remanded to prison under this sub-section shall, subject to the provisions of section 122, be released at any time on giving security in accordance with the terms of the original order for the unexpired portion aforesaid to the Court or Magistrate by whom such order was made, or to its or his successor.