fix indent

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
use calloc instead of malloc/memset

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
check malloc/calloc and don't assert

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
check smb_buffer_alloc

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>