The problem is the testing of the variable "serve" when it's not
initialized, owing to the default config file being empty (as it should
be), and no comand line arguments.
The following patch fixes the problem:
--- nbd-2.9.3/nbd-server.c 2007-07-15 22:05:36.000000000 -0500
+++ nbd-2.9.3.1/nbd-server.c 2007-07-15 22:04:21.000000000 -0500
@@ -1527,7 +1527,7 @@
* Main entry point...
**/
int main(int argc, char *argv[]) {
- SERVER *serve;
+ SERVER *serve=NULL;
GArray *servers;
GError *err=NULL;
@@ -1550,7 +1550,7 @@
}
/* We don't support this at this time */
- if (!(serve->port)) {
+ if (serve && !(serve->port)) {
CLIENT *client;
#ifndef ISSERVER
/* You really should define ISSERVER if you're going to use
--
nbd-server crashed with SIGSEGV
https://bugs.launchpad.net/bugs/122544
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs