Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion lib/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2867,7 +2867,7 @@ uc_nl_request_common(struct nl_sock *sock, uc_vm_t *vm, size_t nargs)

switch (st.state) {
case STATE_REPLIED:
return st.res;
return st.res ? st.res : ucv_boolean_new(true);

case STATE_UNREPLIED:
return ucv_boolean_new(true);
Expand Down
5 changes: 3 additions & 2 deletions lib/rtnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3542,7 +3542,8 @@ static const struct {
* @param {number} flags - The netlink flags for the request
* @param {*} payload - The payload data for the request
*
* @returns {?*} - The response data or null on error
* @returns {Object|boolean} Response object from the kernel, true for
* successful acknowledgment without data, or false on error
*
* @example
* // Send a route request
Expand Down Expand Up @@ -3662,7 +3663,7 @@ uc_nl_request(uc_vm_t *vm, size_t nargs)

switch (st.state) {
case STATE_REPLIED:
return st.res;
return st.res ? st.res : ucv_boolean_new(true);

case STATE_UNREPLIED:
return ucv_boolean_new(true);
Expand Down
Loading