]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/varlink.c
varlink: didn't generate a varlink error reply if a failed method call handler alread...
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Oct 2023 14:59:59 +0000 (16:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Oct 2023 16:19:36 +0000 (18:19 +0200)
commit041a66b8432c73cbc36bd7addc9178e23df67209
treea7390cf239b6a939487e67a06b39192641ac1b46
parentc270fc448ea82ff1aa3af08f15fe7aa39fddb52e
varlink: didn't generate a varlink error reply if a failed method call handler already did

It might happen that a method call handler already generated an error
reply and then still propagated the error back to the varlink logic.
Let's not try to generate a 2nd reply from that error code then, but
simply proceed without. This simplifies handling of errors in method
call handlers, because they can uniformly return errno-style error
codes, and only if they want return a full Varlink errror.
src/shared/varlink.c