Permalink
Browse files

avoid uninitialized values in LOC constructor

  • Loading branch information...
1 parent 4eec51b commit bea513c771c187e0e2f69c394a27b000b283572b @Habbie Habbie committed Jul 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/sillyrecords.cc
@@ -219,7 +219,7 @@ LOCRecordContent::LOCRecordContent(const string& content, const string& zone) :
}
break;
default: /* we didn't get one of each */
- return;
+ throw MOADNSException("Error decoding LOC content");
}
/* altitude */

0 comments on commit bea513c

Please sign in to comment.