]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/cupsaddsmb.c
Merge changes from CUPS 1.5svn-r9313.
[thirdparty/cups.git] / systemv / cupsaddsmb.c
index 32b90b929c361b386773b2595d8af640907c4ef8..955202ddbd8452b786ed01390a31429b7d6875fe 100644 (file)
@@ -219,6 +219,7 @@ export_dest(http_t     *http,               /* I - Connection to server */
   int          status;                 /* Status of export */
   char         ppdfile[1024],          /* PPD file for printer drivers */
                prompt[1024];           /* Password prompt */
+  int          tries;                  /* Number of tries */
 
 
  /*
@@ -238,7 +239,7 @@ export_dest(http_t     *http,               /* I - Connection to server */
   * Try to export it...
   */
 
-  for (status = 0; !status;)
+  for (status = 0, tries = 0; !status && tries < 3; tries ++)
   {
    /*
     * Get the password, as needed...