From: Arran Cudbard-Bell Date: Tue, 19 Feb 2013 15:28:49 +0000 (-0500) Subject: vp_prints should check for NULL da X-Git-Tag: release_3_0_0_beta1~1026 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d6e367ab44678444b29099b7ca66ce5f51eed34;p=thirdparty%2Ffreeradius-server.git vp_prints should check for NULL da --- diff --git a/src/lib/print.c b/src/lib/print.c index c0774873aee..64621c60422 100644 --- a/src/lib/print.c +++ b/src/lib/print.c @@ -603,8 +603,8 @@ int vp_prints(char *out, size_t outlen, const VALUE_PAIR *vp) size_t len; const char *token = NULL; - out[0] = 0; - if (!vp) return 0; + out[0] = '\0'; + if (!vp || !vp->da) return 0; if ((vp->op > T_OP_INVALID) && (vp->op < T_TOKEN_LAST)) {