~ubuntu-branches/ubuntu/raring/openvpn/raring-proposed

« back to all changes in this revision

Viewing changes to socket.c

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2006-04-05 12:17:26 UTC
  • mto: (1.3.3 upstream) (10.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060405121726-btck979dumiwfrte
Tags: upstream-2.0.6
ImportĀ upstreamĀ versionĀ 2.0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
525
525
      new_sd = accept (sd, (struct sockaddr *) remote, &remote_len);
526
526
    }
527
527
 
 
528
#if 0 /* For debugging only, test the effect of accept() failures */
 
529
 {
 
530
   static int foo = 0;
 
531
   ++foo;
 
532
   if (foo & 1)
 
533
     new_sd = -1;
 
534
 }
 
535
#endif
 
536
 
528
537
  if (!socket_defined (new_sd))
529
538
    {
530
539
      msg (D_LINK_ERRORS | M_ERRNO_SOCK, "TCP: accept(%d) failed", sd);