summaryrefslogtreecommitdiff
path: root/security/greenbone-security-assistant/files/patch-gsad-src_gsad_gmp.c
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-01-06 09:13:31 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-01-06 09:13:31 +0000
commit62862c73d5ec69126289c8cffff0239374cba343 (patch)
tree055607c2d7a0dc64c5b8ee80a424d2d5ce7a61a9 /security/greenbone-security-assistant/files/patch-gsad-src_gsad_gmp.c
parent- Connect security/py-gvm-tools (diff)
- Re-add port: security/greenbone-security-assistant
The Greenbone Security Assistant is the web interface developed for the Greenbone Security Manager appliances. It connects to the Greenbone Vulnerability Manager GVM to provide a full-featured user interface for vulnerability management. Greenbone Security Assistant consists of GSA - The webpage written in React and GSAD - The HTTP server talking to the GVM daemon WWW: https://github.com/greenbone/gsa
Notes
Notes: svn path=/head/; revision=560482
Diffstat (limited to 'security/greenbone-security-assistant/files/patch-gsad-src_gsad_gmp.c')
-rw-r--r--security/greenbone-security-assistant/files/patch-gsad-src_gsad_gmp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/greenbone-security-assistant/files/patch-gsad-src_gsad_gmp.c b/security/greenbone-security-assistant/files/patch-gsad-src_gsad_gmp.c
new file mode 100644
index 000000000000..69a7359b2392
--- /dev/null
+++ b/security/greenbone-security-assistant/files/patch-gsad-src_gsad_gmp.c
@@ -0,0 +1,13 @@
+--- gsad/src/gsad_gmp.c 2021-01-03 19:47:56.782208000 -0500
++++ gsad/src/gsad_gmp.c 2021-01-03 19:49:29.616531000 -0500
+@@ -16573,8 +16573,8 @@
+ /* Connect to server. */
+
+ address.sun_family = AF_UNIX;
+- strncpy (address.sun_path, path, sizeof (address.sun_path) - 1);
+- if (connect (sock, (struct sockaddr *) &address, sizeof (address)) == -1)
++ strcpy (address.sun_path, path);
++ if (connect (sock, (struct sockaddr *) &address, sizeof (struct sockaddr_un)) == -1)
+ {
+ g_warning ("Failed to connect to server at %s: %s", path,
+ strerror (errno));