Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Check iface for null, not group_address
  • Loading branch information
n-thumann authored and addaleax committed Oct 16, 2019
commit f2713577bb2ffc1e84d9f227e36e78cdfb072d33
2 changes: 1 addition & 1 deletion src/udp_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void UDPWrap::SetSourceMembership(const FunctionCallbackInfo<Value>& args,
node::Utf8Value iface(args.GetIsolate(), args[2]);

const char* iface_cstr = *iface;
Comment thread
addaleax marked this conversation as resolved.
Outdated
if (args[1]->IsUndefined() || args[1]->IsNull()) {
if (args[2]->IsUndefined() || args[2]->IsNull()) {
Comment thread
addaleax marked this conversation as resolved.
Outdated
iface_cstr = nullptr;
}

Expand Down