~phablet-team/libdsme/master

Viewing all changes in revision 42.1.2.

  • Committer: Simo Piiroinen
  • Date: 2018-03-29 09:34:56 UTC
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: git-v1:b661f44ee87b1a6df8658d229d71adefc930839e
[protocol] Set errno when abandoning dsmesock_send_with_extra()

Callers expect errno to be set when dsmesock_send_with_extra() - which
does not happen on error paths that bypass io altogether.

Set errno to ENOTCONN when doing early return due to invalid connection
state.

Also remove redundant parentheses.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: