rxgen: Fix NULL pointer dereference
[openafs.git] / src / rxgen / rpc_parse.c
index f39d8b5..c8b94ca 100644 (file)
@@ -1413,7 +1413,8 @@ ss_ProcParams_setup(definition * defp)
                }
                f_print(fout, "\t%s %s", plist->pl.param_type,
                        plist->pl.param_name);
-               *pntr = pres;
+               if (pntr)
+                   *pntr = pres;
            } else if (strchr(plist->pl.param_type, '*') == 0) {
                f_print(fout, "\t%s %s", plist->pl.param_type,
                        plist->pl.param_name);