Update indirect.c

GetShift(mask) can be called with mask==0, leading to an infinite loop.
Added a check for mask != 0 before entering the while loop.
6 jobs for patch-1 in 5 minutes and 25 seconds (queued for 1 second)