summaryrefslogtreecommitdiffstats
path: root/src/protocol_null.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-27 19:01:58 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-27 19:01:58 +0200
commit2190d635c1bb7d917c16b543b78d74a4ca9a735d (patch)
tree5c536e7def9471760587837ed088a1ab26cf1432 /src/protocol_null.c
parent21e4ada4bb0321250702c3af32d10f6a1bc65931 (diff)
downloadfastd-2190d635c1bb7d917c16b543b78d74a4ca9a735d.tar
fastd-2190d635c1bb7d917c16b543b78d74a4ca9a735d.zip
Fix NULL dereference on null protocol initialization
Diffstat (limited to 'src/protocol_null.c')
-rw-r--r--src/protocol_null.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol_null.c b/src/protocol_null.c
index 71957e2..b22e03e 100644
--- a/src/protocol_null.c
+++ b/src/protocol_null.c
@@ -35,7 +35,7 @@
static void protocol_init(fastd_context *ctx, fastd_config *conf) {
- if (ctx->conf->n_floating > 1)
+ if (conf->n_floating > 1)
exit_error(ctx, "with protocol `null' use can't define more than one floating peer");
}