fixing SNI_GetFromBuffer return code on success.