aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-05-07 11:02:05 +0200
committerLukas Larsson <[email protected]>2019-05-07 11:02:05 +0200
commitbde9e42ec8c5dee5ba1333d70f87515d8f38e798 (patch)
treec338d66835d49b53af6aee22cf2fa0d8a0cd5278 /lib/kernel/src
parente90dfd8814cc086349863d66a35e7cdefc69947a (diff)
parentf92fc026fe6f34bc869a5166a2726f890986929a (diff)
downloadotp-bde9e42ec8c5dee5ba1333d70f87515d8f38e798.tar.gz
otp-bde9e42ec8c5dee5ba1333d70f87515d8f38e798.tar.bz2
otp-bde9e42ec8c5dee5ba1333d70f87515d8f38e798.zip
Merge branch 'lukas/kernel/inet_db_fix_set_of_non-existing_file/OTP-15806'
* lukas/kernel/inet_db_fix_set_of_non-existing_file/OTP-15806: kernel: Fix setting of non-existing file as inet_db resolv_conf
Diffstat (limited to 'lib/kernel/src')
-rw-r--r--lib/kernel/src/inet_db.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kernel/src/inet_db.erl b/lib/kernel/src/inet_db.erl
index 3f5a2ea5ee..630ef5d2f7 100644
--- a/lib/kernel/src/inet_db.erl
+++ b/lib/kernel/src/inet_db.erl
@@ -1226,7 +1226,8 @@ handle_set_file(Option, Fname, TagTm, TagInfo, ParseFun, From,
_ ->
ets:insert(Db, {TagInfo, undefined}),
TimeZero = - (?RES_FILE_UPDATE_TM + 1), % Early enough
- ets:insert(Db, {TagTm, TimeZero})
+ ets:insert(Db, {TagTm, TimeZero}),
+ <<>>
end,
handle_set_file(ParseFun, Bin, From, State);
false -> {reply,error,State}