Changeset 1b555f0f in mainline


Ignore:
Timestamp:
2018-11-26T21:03:20Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f89204ee
Parents:
b501de7
git-author:
Jakub Jermar <jakub@…> (2018-11-26 21:01:21)
git-committer:
Jakub Jermar <jakub@…> (2018-11-26 21:03:20)
Message:

Do not answer calls with invalid capability handle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/hound/src/protocol.c

    rb501de7 r1b555f0f  
    615615                        break;
    616616                default:
    617                         async_answer_0(&call, ENOTSUP);
     617                        /*
     618                         * In case we called async_get_call() after we had
     619                         * already received IPC_M_PHONE_HUNGUP deeper in the
     620                         * protocol handling, the capability handle will be
     621                         * invalid, so act carefully here.
     622                         */
     623                        if (call.cap_handle != CAP_NIL)
     624                                async_answer_0(&call, ENOTSUP);
    618625                        return;
    619626                }
Note: See TracChangeset for help on using the changeset viewer.