FreeBSD Bugzilla – Attachment 155606 Details for
Bug 199442
security/strongswan: fix smp_plugin_create() returned NULL error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
regenerated patch file 2
patch-src__libcharon__plugins__smp__smp.c (text/plain), 714 bytes, created by
Franco Fichtner
on 2015-04-15 07:37:13 UTC
(
hide
)
Description:
regenerated patch file 2
Filename:
MIME Type:
Creator:
Franco Fichtner
Created:
2015-04-15 07:37:13 UTC
Size:
714 bytes
patch
obsolete
>--- src/libcharon/plugins/smp/smp.c.orig 2013-11-01 10:40:35 UTC >+++ src/libcharon/plugins/smp/smp.c >@@ -737,7 +737,7 @@ METHOD(plugin_t, destroy, void, > */ > plugin_t *smp_plugin_create() > { >- struct sockaddr_un unix_addr = { AF_UNIX, IPSEC_PIDDIR "/charon.xml"}; >+ struct sockaddr_un unix_addr; > private_smp_t *this; > mode_t old; > >@@ -766,6 +766,11 @@ plugin_t *smp_plugin_create() > return NULL; > } > >+ strlcpy(unix_addr.sun_path, IPSEC_PIDDIR "/charon.xml", >+ sizeof(unix_addr.sun_path)); >+ unix_addr.sun_len = sizeof(unix_addr); >+ unix_addr.sun_family = PF_LOCAL; >+ > unlink(unix_addr.sun_path); > old = umask(S_IRWXO); > if (bind(this->socket, (struct sockaddr *)&unix_addr, sizeof(unix_addr)) < 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 199442
:
155587
|
155604
|
155605
|
155606
|
155607
|
155609
|
155611
|
155612
|
155614
|
155617
|
155623