File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -535,7 +535,7 @@ int main(int argc, char **argv) {
535535
536536 // plus one because we use the abstract namespace, it will show up in
537537 // /proc/net/unix prefixed with an @
538- int result = ::bind (fd, (sockaddr *)&addr, len + sizeof (addr. sun_family ) + 1 );
538+ int result = ::bind (fd, (sockaddr *)&addr, sizeof (addr) );
539539
540540 if (result == 0 ) {
541541 // If called in master mode with exit command, no need to start master
@@ -556,7 +556,7 @@ int main(int argc, char **argv) {
556556 gettimeofday (&t0, NULL );
557557 gettimeofday (&t1, NULL );
558558 for (int i = 0 ; i < 3 || (t1.tv_sec < 3 + t0.tv_sec ); i++) {
559- result = connect (fd, (sockaddr *)&addr, len + sizeof (addr. sun_family ) + 1 );
559+ result = connect (fd, (sockaddr *)&addr, sizeof (addr) );
560560 if (result == 0 )
561561 break ;
562562 if (i == 0 )
You can’t perform that action at this time.
0 commit comments