]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/accept.c
Import CUPS 1.4svn-r7226.
[thirdparty/cups.git] / systemv / accept.c
index 5d816cf0f14673b36cebade8afc63dba2e83aca5..e7efddad74d6b1473de4f3caed39de70d90027cd 100644 (file)
@@ -4,7 +4,7 @@
  *   "accept", "disable", "enable", and "reject" commands for the Common
  *   UNIX Printing System (CUPS).
  *
- *   Copyright 2007 by Apple Inc.
+ *   Copyright 2007-2008 by Apple Inc.
  *   Copyright 1997-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
@@ -125,8 +125,11 @@ main(int  argc,                            /* I - Number of command-line arguments */
            break;
 
         case 'h' : /* Connect to host */
-           if (http != NULL)
+           if (http)
+           {
              httpClose(http);
+             http = NULL;
+           }
 
            if (argv[i][2] != '\0')
              cupsSetServer(argv[i] + 2);