Skip to content

Commit

Permalink
Check iface for null, not group_address
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann authored and addaleax committed Oct 16, 2019
1 parent f75fd45 commit f271357
Showing 1 changed file with 1 addition and 1 deletion.
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;
if (args[1]->IsUndefined() || args[1]->IsNull()) {
if (args[2]->IsUndefined() || args[2]->IsNull()) {
iface_cstr = nullptr;
}

Expand Down

0 comments on commit f271357

Please sign in to comment.