Package: nbd-server
Version: 1:3.8-4
Severity: important

Dear Maintainer,

ip authorization in nbd-server config did not work in jessie.

With the debugging appended below it shows the contents of byte_s
as beeing hex "cc", which explains why im my case only a xxx.xxx.xxx.xxx/1
mask is working, as the client IP starts with hex 8x.

Please tell me if more information is needed.

Thanks,
 greetings
   Hermann


> hg qdiff
diff --git a/nbdsrv.c b/nbdsrv.c
--- a/nbdsrv.c
+++ b/nbdsrv.c
@@ -66,6 +66,7 @@
                                break;
                }
                while(len_left >= 8) {
+                       printf("cmp byte_s %02x byte_t %02x", *byte_s, *byte_t);
                        if(*byte_s != *byte_t) {
                                goto next;
                        }


-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/16 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nbd-server depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.56
ii  libc6                  2.19-18
ii  libglib2.0-0           2.42.1-1
ii  ucf                    3.0030

nbd-server recommends no packages.

nbd-server suggests no packages.

-- debconf information:
  nbd-server/name:
  nbd-server/useports: false
  nbd-server/port:
  nbd-server/autogen:
  nbd-server/convert: true
  nbd-server/filename:
  nbd-server/number: 0


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to