Niazi vowed to secure bail for Musharraf