]> git.meshlink.io Git - meshlink/commitdiff
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 c51c133631f8d800b06f2644d086628d65fc46c2..b31bed737e0653ae0a0c8fb1a7bf130a6c6364a0 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;