security: fix a couple of sparse warnings