whether you swallow or not has nothing to do with std risk in general.
You can contract herpes from performing oral on someone who has it genitally. If you aren't sure of your partner's overall std status, you should only perform protected oral sex and only receive protected oral sex.
grace
herpes is only transmitted through skin to skin contact. if the person you gave oral to has genital herpes then you are most likley to contract it.