Fix crash in sdba.c