Do not try to dereference myself->connection->config_tree.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 19 Nov 2010 12:26:20 +0000 (12:26 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 19 Nov 2010 12:26:20 +0000 (12:26 +0000)
This was a bug introduced due to an incomplete merge (commit
ff71f289022ccb91abc2726f16522d55b5ccf0f6).

src/net_setup.c

index c51c133..b31bed7 100644 (file)
@@ -415,7 +415,7 @@ bool setup_myself(void) {
 
        /* Check if we want to use message authentication codes... */
 
-       if(!get_config_string(lookup_config(myself->connection->config_tree, "Digest"), &digest))
+       if(!get_config_string(lookup_config(config_tree, "Digest"), &digest))
                digest = xstrdup("sha1");
 
        int maclength = 4;