Initialize context so we don't segfault on exit.

Signed-off-by: Alon Bar-Lev <[EMAIL PROTECTED]>

---

--- ecryptfs-utils-26/src/libecryptfs/netlink.c 2007-10-10 02:17:30.000000000 
+0200
+++ ecryptfs-utils-26.prompt/src/libecryptfs/netlink.c  2007-10-13 
19:03:59.000000000 +0200
@@ -234,6 +235,8 @@ int ecryptfs_run_netlink_daemon(int sk_f
        int error_count = 0;
        int rc;
 
+       memset(&ctx, 0, sizeof(struct ecryptfs_ctx));
+
        if ((rc = ecryptfs_register_key_modules(&ctx))) {
                syslog(LOG_ERR, "Failed to register key modules; rc = [%d]\n",
                       rc);

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
eCryptfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecryptfs-devel

Reply via email to