9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] dnsdebug crash
@ 2013-01-04 18:46 erik quanstrom
  0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2013-01-04 18:46 UTC (permalink / raw)
  To: 9fans

another crash found:  on some architectures, it will crash in procsetname()
due to req.from being uninitialized.

- erik

/n/sources/plan9/sys/src/cmd/ndb/dnsdebug.c:323,328 - dnsdebug.c:315,321
  			l = &(*l)->next;
  			continue;
  		}
+ 		memset(&req, 0, sizeof req);
  		req.isslave = 1;
  		req.aborttime = NS2MS(nowns) + Maxreqtm;
  		*l = dnresolve(rp->host->name, Cin, Ta, &req, 0, 0, Recurse, 0, 0);



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-04 18:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-04 18:46 [9fans] dnsdebug crash erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).