Long PHP page fix.
[silc.git] / lib / silchttp / silchttpphp.c
index f68cc8c3ee9fe4b0bcbf05dad93282ef62062477..02f95e2c89350b30e0faa51416e9872faa109bf9 100644 (file)
@@ -86,10 +86,12 @@ SilcBuffer silc_http_php_file(const char *filename)
     }
 
     if (len) {
-      ret = silc_buffer_alloc(0);
       if (!ret) {
-       pclose(fd);
-       return NULL;
+       ret = silc_buffer_alloc(0);
+       if (!ret) {
+         pclose(fd);
+         return NULL;
+       }
       }
 
       silc_buffer_format(ret,