static int
X25_input(int type, char *bufp, struct sockaddr *sap)
{
- unsigned char *ptr;
+ char *ptr;
char *p;
unsigned int sigdigits;
}
if (strlen(bufp) < 1 || strlen(bufp) > 15 || sigdigits > strlen(bufp)) {
- *p = '/';
+ if (p != NULL)
+ *p = '/';
strcpy(X25_errmsg, _("Invalid address"));
#ifdef DEBUG
fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig);