I'll be doing the same in November. If both flights are on the same ticket, you have no problems. Same terminal, no customs. If you are on separate tix (like me - paid SFO-SYD, award SYD-AKL) you are also OK. That is unless you checked bags, in which case, you will have to claim and re-check, but you should be fine either way.