diff --git a/CHANGELOG.md b/CHANGELOG.md
index fd0d61ea57237a113b622cff13a58c34190df091..346cc9a0efe284c21e27ddfda95acd28efabac5f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -48,6 +48,7 @@ ctest FunctionalTestJigsawApollo to validate this output. [#5710](https://github
 - Fixed SpiceClient to handle redirect requests.
 - Fixed jigsaw to default OUTADJUSTMENTH5 option to false and allow this feature to run on read-only images [#5700](https://github.com/DOI-USGS/ISIS3/issues/5700)
 - Fixed Cube::fromIsd to add "LineScanTimes" table from HRSC isds [#5668](https://github.com/DOI-USGS/ISIS3/issues/5668)
+- Fixed segfault in SpiceClient when an authentication error was encountered. [#5735](https://github.com/DOI-USGS/ISIS3/pull/5735)
 
 ## [9.0.0] - 09-25-2024
 
diff --git a/isis/src/base/apps/spiceinit/SpiceClient.cpp b/isis/src/base/apps/spiceinit/SpiceClient.cpp
index 3156ee7f54c11a6e337fa7a4e4ed846ecaf4e00a..5d1d8e1d3df08591e6ecd18caa242c7fd0b10725 100644
--- a/isis/src/base/apps/spiceinit/SpiceClient.cpp
+++ b/isis/src/base/apps/spiceinit/SpiceClient.cpp
@@ -371,6 +371,10 @@ namespace Isis {
       p_response = new QString();
     }
 
+    if (!p_error) {
+      p_error = new QString();
+    }
+
     *p_error = "Server expects authentication which is not currently ";
     *p_error += "supported";
     quit();
@@ -386,6 +390,10 @@ namespace Isis {
       p_response = new QString();
     }
 
+    if (!p_error) {
+      p_error = new QString();
+    }
+
     *p_error = "Server expects authentication which is not currently ";
     *p_error += "supported";
     quit();
@@ -403,6 +411,10 @@ namespace Isis {
       p_response = new QString();
     }
 
+    if (!p_error) {
+      p_error = new QString();
+    }
+
     *p_error = "Server expects authentication which is not currently ";
     *p_error += "supported";