projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c724ca6
)
r308: Fix segfault when exporting more than one device.
author
yoe <yoe>
Wed, 14 Nov 2007 19:19:24 +0000
(19:19 +0000)
committer
yoe <yoe>
Wed, 14 Nov 2007 19:19:24 +0000
(19:19 +0000)
nbd-server.c
patch
|
blob
|
history
diff --git
a/nbd-server.c
b/nbd-server.c
index
2c2c973
..
f31f812
100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-1451,7
+1451,7
@@
int serveloop(GArray* servers) {
/* child */
g_hash_table_destroy(children);
for(i=0;i<servers->len;i++) {
- serve=g_array_index(servers, SERVER*, i);
+ serve=&g_array_index(servers, SERVER, i);
close(serve->socket);
}
/* FALSE does not free the