Skip to content

Commit

Permalink
Fix minor Use-After-Move in sockets API
Browse files Browse the repository at this point in the history
  • Loading branch information
fhanau committed Oct 31, 2024
1 parent 6c841e4 commit fbd611c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/api/sockets.c++
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ void Socket::handleProxyStatus(jsg::Lock& js, kj::Promise<kj::Maybe<kj::Exceptio

void Socket::handleProxyError(jsg::Lock& js, kj::Exception e) {
resolveFulfiller(js, kj::cp(e));
openedResolver.reject(js, kj::mv(e));
openedResolver.reject(js, kj::cp(e));
readable->getController().cancel(js, kj::none).markAsHandled(js);
writable->getController().abort(js, js.error(e.getDescription())).markAsHandled(js);
}
Expand Down

0 comments on commit fbd611c

Please sign in to comment.