This is to avoid crashes like that reported in
https://bugs.launchpad.net/ubuntu/+source/ppp/+bug/
1244714
Signed-off-by: Paul Mackerras <paulus@samba.org>
case 'q': /* quoted string */
quoted = c == 'q';
p = va_arg(args, unsigned char *);
case 'q': /* quoted string */
quoted = c == 'q';
p = va_arg(args, unsigned char *);
+ if (p == NULL)
+ p = (unsigned char *)"<NULL>";
if (fillch == '0' && prec >= 0) {
n = prec;
} else {
if (fillch == '0' && prec >= 0) {
n = prec;
} else {