]> git.pld-linux.org Git - packages/fusesmb.git/blob - fusesmb-sv.patch
- from repository
[packages/fusesmb.git] / fusesmb-sv.patch
1
2 # HG changeset patch
3 # User Vincent Wagelaar <vincent@ricardis.tudelft.nl>
4 # Date 1195498868 -3600
5 # Node ID 36cbf3b25cb6712e00b517c0ee98177096ddf83e
6 # Parent 00de6cb760f4a5e292148c7c5522536fc0c48b54
7 sv is uninitialized fix by Evgeniy Dushistov
8
9 --- a/smbctx.c  Tue Sep 18 21:59:31 2007 +0200
10 +++ b/smbctx.c  Mon Nov 19 20:01:08 2007 +0100
11 @@ -29,6 +29,7 @@ static int nmblookup(const char *ip_serv
12  static int nmblookup(const char *ip_server, char *output, size_t outputsize)
13  {
14      char ipcmd[1024] = "nmblookup -A ";
15 +    *output = '\0';
16      strcat(ipcmd, ip_server);
17      FILE *pipe = popen(ipcmd, "r");
18      if (NULL == pipe)
19 @@ -174,7 +175,7 @@ static void fusesmb_cache_auth_fn(const 
20  {
21      (void)workgroup;
22      (void)wgmaxlen;
23 -    char sv[1024];
24 +    char sv[1024] = "";
25  
26      /* Don't authenticate for workgroup listing */
27      if (NULL == server || server[0] == '\0')
28
This page took 0.038694 seconds and 3 git commands to generate.