ssa.c: Check the pointer for a buffer before rsend and riowrite