FreeBSD Bugzilla – Attachment 16208 Details for
Bug 29808
[nis] ypserv(8) dumps core in yp_find_db
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.77 KB, created by
cattelan
on 2001-08-17 16:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
cattelan
Created:
2001-08-17 16:50:01 UTC
Size:
1.77 KB
patch
obsolete
>Index: yp_dblookup.c >=================================================================== >RCS file: /home/cattelan/FreeBSD-CVS/src/usr.sbin/ypserv/yp_dblookup.c,v >retrieving revision 1.17 >diff -c -r1.17 yp_dblookup.c >*** yp_dblookup.c 1999/08/28 01:21:11 1.17 >--- yp_dblookup.c 2001/08/17 15:34:55 >*************** >*** 234,245 **** >--- 234,250 ---- > > for (qptr = qhead.cqh_first; qptr != (void *)&qhead; > qptr = qptr->links.cqe_next) { >+ if (qptr->dbptr && qptr->dbptr->name){ > if (!strcmp(qptr->dbptr->name, buf)) { > if (qptr->dbptr->flags & flag) > return(1); > else > return(0); > } >+ } else { >+ fprintf(stderr,"got null qptr->dbptr or -> name\n"); >+ return(0); >+ } > } > > if (yp_open_db_cache(domain, map, NULL, 0) == NULL) >*************** >*** 327,333 **** > > for (qptr = qhead.cqh_first; qptr != (void *)&qhead; > qptr = qptr->links.cqe_next) { >! if (!strcmp(qptr->dbptr->name, name)) { > if (size) { > if (size != qptr->dbptr->size || > strncmp(qptr->dbptr->key, key, size)) >--- 332,338 ---- > > for (qptr = qhead.cqh_first; qptr != (void *)&qhead; > qptr = qptr->links.cqe_next) { >! if (qptr && qptr->dbptr && !strcmp(qptr->dbptr->name, name)) { > if (size) { > if (size != qptr->dbptr->size || > strncmp(qptr->dbptr->key, key, size))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29808
: 16208