This is standard operating procedure - the offer is contingent on getting a favourable reference. However, the HR manager at your previous employment has an ethical and possibly legal (depending on labour law in your country) to keep any such inquiry confidential. If he speaks to your current manager, he (and the company he works for) could be sued.