FreeBSD Bugzilla – Attachment 136537 Details for
Bug 181783
[PATCH] nslookup(1) segfaults after reading "^D"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 736 bytes, created by
Fabian Keil
on 2013-09-03 18:30:00 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
Fabian Keil
Created:
2013-09-03 18:30:00 UTC
Size:
736 bytes
patch
obsolete
>From 9f966878a610092dafade8950a32f789ca361f7f Mon Sep 17 00:00:00 2001 >From: Fabian Keil <fk@fabiankeil.de> >Date: Tue, 3 Sep 2013 10:55:07 +0200 >Subject: [PATCH] Prevent nslookup from segfaulting upon receiving ^D > >--- > contrib/bind9/bin/dig/nslookup.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/contrib/bind9/bin/dig/nslookup.c b/contrib/bind9/bin/dig/nslookup.c >index 3f5b82f..49aabed 100644 >--- a/contrib/bind9/bin/dig/nslookup.c >+++ b/contrib/bind9/bin/dig/nslookup.c >@@ -767,7 +767,8 @@ get_next_command(void) { > if (interactive) { > #ifdef HAVE_READLINE > ptr = readline("> "); >- add_history(ptr); >+ if (ptr != NULL) >+ add_history(ptr); > #else > fputs("> ", stderr); > fflush(stderr); >-- >1.8.2.2
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 Raw
Actions:
View
Attachments on
bug 181783
: 136537