Section 122(6) in The Code of Criminal Procedure, 1973
(6)If the security is tendered to the officer-in-charge of the jail, he shall forthwith refer the matter to the Court or Magistrate who made the order, and shall await the orders of such Court or Magistrate.