diff --git a/src/common/slurm_protocol_api.c b/src/common/slurm_protocol_api.c
index 12ca5e9753fce2e739c1d5875821214ec1335251..a2bb2231339399b82db651a74604629154f2fbb8 100644
--- a/src/common/slurm_protocol_api.c
+++ b/src/common/slurm_protocol_api.c
@@ -648,7 +648,7 @@ int slurm_send_only_node_msg ( slurm_msg_t * request_msg )
 
 short int slurm_get_slurmd_port ( )
 {
-	return slurmctld_conf . slurmctld_port ;
+	return slurmctld_conf . slurmd_port ;
 }
 
 void slurm_free_msg ( slurm_msg_t * msg )