summaryrefslogtreecommitdiff
path: root/src/core/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-18 11:40:01 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-18 11:40:01 +0200
commit3ef63c317481c2b3f1fe39e1b0f130aac3544522 (patch)
tree0a6bb8b1566591bb7cf6d51fcb085493688efa4a /src/core/socket.c
parent41f9172f427bdbb8221c64029f78364b8dd4e527 (diff)
unit-printf: before resolving exec context specifiers check whether the object actually has an exec context
Diffstat (limited to 'src/core/socket.c')
-rw-r--r--src/core/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index 63e6ed29fe..361404512c 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -2196,6 +2196,8 @@ DEFINE_STRING_TABLE_LOOKUP(socket_result, SocketResult);
const UnitVTable socket_vtable = {
.object_size = sizeof(Socket),
+ .exec_context_offset = offsetof(Socket, exec_context),
+
.sections =
"Unit\0"
"Socket\0"