This commit is contained in:
Miek Gieben 2011-08-24 15:44:09 +02:00
parent 7aa11e5d3e
commit 6eabda897c
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ func (u *Update) NameNotUsed(rr []RR) {
// "RRset exists (value dependent -- with rdata)" RRs. RFC 2136 section 2.4.2.
func (u *Update) RRsetUsedFull(rr []RR) {
if len(u.Msg.Question) == 0 {
panic("empty question section"
panic("empty question section")
}
u.Answer = make([]RR, len(rr))
for i, r := range rr {
@ -111,7 +111,7 @@ func (u *Update) RRsetNotUsed(rr []RR) {
// RRsetAddFull adds an complete RRset, see RFC 2136 section 2.5.1
func (u *Update) RRsetAddFull(rr []RR) {
if len(u.Msg.Question) == 0 {
panic("empty question section"
panic("empty question section")
}
u.Ns = make([]RR, len(rr))
for i, r := range rr {