Skip to content

Commit bea513c

Browse files
author
Peter van Dijk
committed
avoid uninitialized values in LOC constructor
1 parent 4eec51b commit bea513c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdns/sillyrecords.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ LOCRecordContent::LOCRecordContent(const string& content, const string& zone) :
219219
}
220220
break;
221221
default: /* we didn't get one of each */
222-
return;
222+
throw MOADNSException("Error decoding LOC content");
223223
}
224224

225225
/* altitude */

0 commit comments

Comments
 (0)